更改pip源 / 解决 ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read

一番折腾之后,直接指定下载源,解决问题

 pip install -i https://pypi.douban.com/simple <需要安装的包>
 比如:
  pip install -i https://pypi.douban.com/simple requests

如果提示#ubuntu sudo: pip:找不到命令
那就先进行安装pip:ubuntu18.04安装pip

参考链接:

https://www.cnblogs.com/longchang/p/11274461.html

另一相关问题:在安装lxml时提示错误ERROR: Could not find a version that satisfies the requirement lxml (from versions: none),ERROR: No matching distribution found for lxml。
附上解决办法:https://www.cnblogs.com/ytkah/p/12332265.html

你可能感兴趣的:(更改pip源 / 解决 ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read)