Pycham安装深度学习依赖包很慢问题原因以及解决方法
同样使用上述命令,但这会在虚拟环境的相关配置中设置镜像源。设置中国科大镜像源(在PyCharm终端)设置阿里云镜像源(在PyCharm终端)设置清华镜像源(在PyCharm终端)使用相同命令在虚拟环境内设置。2 需要修改镜像源为国内网址。1 采用的是国外网址。输入以上命令来设置。
·
1 采用的是国外网址
2 需要修改镜像源为国内网址
Pycham 终端 一键设置:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
3 其它
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simplehttps://mirrors.aliyun.com/pypi/simple/
查看 pip config list
3 用命令下载安装包后,还需要在当前工程解释器中查找 install 一次
4

5 ubuntu下指定镜像源下载
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple torch torchvision torchaudio
6 ubuntu 下载失败需要设置DNS 手动设置


更多推荐
所有评论(0)