conda:

​ conda env list

查看当前已创建的虚拟环境

​ conda activate --名--

切换虚拟环境

​ conda list

查看当前环境包含的包/库

​ conda create -n --名-- python=3.9 (-c --镜像地址--)

创建新虚拟环境

​ conda remove -n --名-- --all

删除虚拟环境及其包

​ conda config --get

查看配置文件中有哪些通道(镜像)

​ conda config --add/remove channels --通道地址--

添加/删除通道

(lstmStock) C:\Users\Administrator>

​ conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia

pytorch安装

国内源下载

1
pip install django -i https://pypi.tuna.tsinghua.edu.cn/simple