码迷,mamicode.com
首页 > 编程语言 > 详细

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

时间:2019-12-29 18:14:38      阅读:260      评论:0      收藏:0      [点我收藏+]

标签:trie   etc   tor   vendor   efault   rmi   cat   sed   cert   

用pip安装tornado库:

python -m pip install tornado

出现问题一: Could not fetch URL https://pypi.org/simple/twisted/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org‘, port=443): Max retries exceeded with url: /simple/twisted/ (Caused by SSLError("Can‘t connect to HTTPS URL because the SSL module is not available.")) - skipping

技术图片

 

 解决办法:python -m pip install tornado --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

即在库名后+  --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

 

出现问题二:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed out.

技术图片

解决办法:python -m pip install --default-timeout=100 tornado  --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

标签:trie   etc   tor   vendor   efault   rmi   cat   sed   cert   

原文地址:https://www.cnblogs.com/qihuang94/p/12115639.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!