pip安装对应cuda版本的torch/torchvision
pip install torch==1.5.1+cu92 -f https://download.pytorch.org/whl/cu92/torch_stable.html
一、更换清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

也可以直接打开/home/not-raining/.config/pip/pip.conf进行更改
二、导出环境
1.导出包
pip freeze > /path/to/requirements.txt
2.安装包到当前环境
pip install -r /path/to/requirements.txt
3.离线下载
pip download -d package_dir -r /path/to/requirements.txt
4.离线安装
pip install --no-index --find-links=package_dir -r /path/to/requirements.txt
630

被折叠的 条评论
为什么被折叠?



