首页 > Python 虚拟环境使用pip报错

Python 虚拟环境使用pip报错

我用virtualenv建了个虚拟环境
然后用虚拟环境里的pip安装任何包都显示ssl错误和找不到包。

pip install tornado

InsecurePlatformWarning: A true SSLContext object is not available. 
This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
 For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning
 Could not find a version that satisfies the requirement tornado (from versions: )
No matching distribution found for tornado

pip search tornado

SSLError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'

这是为什么呢?系统的pip可以安装包。


请问您解决了么?我也遇到同样的问题了


帮你 Google 了下 InsecurePlatformWarning: A true SSLContext object is not available.

看下这个试试,https://www.phodal.com/blog/python-pip-openssl-issue/

【热门文章】
【热门文章】