新购买服务器解决问题一:服务器安装虚拟环境报错


根源问题:


HTTPError: 404 Client Error: Not Found for url: http://mirrors.tencentyun.com/pypi/simple/pkg-resources/

解决方法:

访问PyPI镜像源出了问题,将pip的默认的源地址改为国内源即可。具体操作如下:

vim ~/.pip/pip.conf打开pip配置文件: 写入

[global]
index-url = http://e.pypi.python.org/simple

e.pypi.python.org

pypi.douban.com

pypi.hustunique.com

猜你喜欢

转载自blog.csdn.net/jingmin_heijie/article/details/88692268