文章概览
pip
咱这个不知道为啥新建虚拟环境后pip版本都过低,需要先
python -m pip install --upgrade pip
安装指定版本:
pip install xxx==1.15
源
https://pypi.doubanio.com/simple/
,https://pypi.mirrors.ustc.edu.cn/simple/
,https://pypi.tuna.tsinghua.edu.cn/simple
安装torch
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
conda
(92条消息) Anaconda conda常用命令:从入门到精通_笨牛慢耕的博客-CSDN博客_anaconda conda命令怎么用
新建虚拟环境
1
conda create python=3.10 -n python3.10
删除虚拟环境
1
conda remove --name env_name --all
查看虚拟环境列表
1
conda info --envs
多想多做,发篇一作