下载及安装
教程:https://zhuanlan.zhihu.com/p/35801201
报错解决:
WSL安装无法打开(WslRegisterDistribution failed with error: 0x800701bc…)
https://www.jianshu.com/p/e2df6d091f73
环境配置
WSL2 的开发环境配置 (基础配置, 网络代理, CUDA, Python, Fortran, Latex, 服务器配置)
使用VsCode连接WSL:
https://blog.csdn.net/m0_52043808/article/details/133877214
环境变量配置:
https://blog.csdn.net/m0_49376775/article/details/129870473
# cuda 11.6 (根据版本进行更改)
export CUDA_HOME= / mnt/ petrelfs/ share/ cuda- 11.6 /
export PATH= / mnt/ petrelfs/ share/ cuda- 11.6 / bin:: $PATH
export LD_LIBRARY_PATH= / mnt/ petrelfs/ share/ cuda- 11.6 / lib64: $LD_LIBRARY_PATH# gcc7.5
export LD_LIBRARY_PATH= / mnt/ petrelfs/ share/ gcc/ gcc- 7.5 .0 / lib64: $LD_LIBRARY_PATH
export PATH= / mnt/ petrelfs/ share/ gcc/ gcc- 7.5 .0 / bin: $PATH
export GCC_HOME= / mnt/ petrelfs/ share/ gcc/ gcc- 7.5 .0 /
export PATH= $GCC_HOME/ bin: $PATH# v p n
LOCAL_DNS= $( cat / etc/ resolv. conf | grep "nameserver" | cut - f 2 - d " " )
alias proxy_on= 'export http_proxy= http: / / $LOCAL_DNS: 7890 / ; export https_proxy= http: / / $LOCAL_DNS: 7890 / ; export HTTP_PROXY= http: / / $LOCAL_DNS: 7890 / ; export HTTPS_PROXY= http: / / $LOCAL_DNS: 7890 / '
alias proxy_off= 'unset http_proxy; unset https_proxy; unset HTTP_PROXY; unset HTTPS_PROXY'
proxy_onalias llm_env= 'conda activate llm'