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可以安装包。

阅读 29.4k
2 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏