python换国内源地址
Python 2022/1/24 17:37:20 点击:不统计
python pip安装软件出现 'Connection to files.pythonhosted.org timed out. 的问题,更换国内源地址即可。
阿里云 http://mirrors.aliyun.com/pypi/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
更换国内源地址命令
更换国内源地址命令
临时:pip命令+ -i +镜像地址。如下
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/
永久:在更新到最新版本pip后,pip config set global.index-url+国内镜像地址,如下
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
·上一篇:Scrapy 命令 >> ·下一篇:scrapy response >>