品质好的网站制作,个性化网站建设,长沙建长沙建网站公司,wordpress图片浏览插件下载一、AutoDL租用服务器
1.选用服务器
1.算力市场 租用服务器#xff0c;选择自己心仪的服务器 2.镜像 可以选择一些基础的镜像#xff0c;社区镜像里是git上有的环境。 3.上传文件 在文件存储中#xff0c;选择上传的区#xff0c;在右边点击上传#xff0c;选择自己的文…一、AutoDL租用服务器
1.选用服务器
1.算力市场 租用服务器选择自己心仪的服务器 2.镜像 可以选择一些基础的镜像社区镜像里是git上有的环境。 3.上传文件 在文件存储中选择上传的区在右边点击上传选择自己的文件上传到云服务器中。
二、配置环境
1.准备工作
1.进入终端
vim ~/.bashrc2.按i键进入编辑模式到最下面输入
source root/miniconda3/etc/profile.d/conda.sh3.保存退出 先按ESC键再按wq 4.输入bash 刷新 5、进入conda环境 conda activate base #可能会报错‘…conda init’ #1、执行conda init 命令 #2、执行bash #3、重新激活conda activate base 2.配置pytorch环境环境名为py38
1.创建新的虚拟环境
conda create -n py38 python3.82.进入新环境
conda activate py383.安装包此处安装pytorch
conda install pytorch1.10.0 torchvision0.11.0 torchaudio0.10.0 cudatoolkit11.3 -c pytorch -c conda-forge如果报错 Solving environment: failed with initial frozen solve. Retrying with flexible solve. 解决方法们可能多试几次就行了–由于网络不稳定 1删掉后面的 -c pytorch -c conda-forge 2换源
恢复默认源conda config --remove-key channels
换源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
conda config --set show_channel_urls yes
3改变通道的主要性
conda config --set channel_priority flexible 4.conda版本过高可能python版本也要跟着换
#查看版本 (damon) C:\Users\LYYAOconda --version conda 4.6.14 #换版本 conda config --set allow_conda_downgrades true conda install conda4.6.14 5粗暴的解决办法直接使用pip安装可以成功安装第三方包但后续可能会造成问题。
(damon) C:\Users\LYYAOpip install scikit-learn 4.安装另外的包
pip install jupyter d2l
conda install ipykernel
ipython kernel install --user --namepy38三、
参考连接 远程GPU服务器Autodl搭建Pytorch环境 AutoDL使用教程