Python 虚拟环境使用pip报错

 Sure张硕 发布于 2022-11-01 01:07

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

2 个回答
  • 请问您解决了么?我也遇到同样的问题了

    2022-11-01 01:31 回答
  • 帮你 Google 了下 InsecurePlatformWarning: A true SSLContext object is not available.

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

    2022-11-01 01:39 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有