首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python3.8virtualenv pip未升级

Python3.8virtualenv pip未升级
EN

Stack Overflow用户
提问于 2020-03-24 04:44:12
回答 1查看 757关注 0票数 1

在运行以下命令时

pip install --upgrade pip

它显示以下错误,即使我无法安装任何其他包,因为它显示升级pip first。

代码语言:javascript
复制
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: pip in ./environments/mjshare_env/lib/python3.8/site-packages (19.3.1)
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

如果我运行

pip list

我有以下包

代码语言:javascript
复制
Package    Version
---------- -------
pip        19.3.1 
setuptools 42.0.2 
wheel      0.33.6 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-24 04:49:51

问题不在于pip的版本,而在于ssl。您安装的python版本没有ssl模块,如果您在没有安装libssl-dev头文件的情况下编译python,就会发生这种情况。(或者您下载的版本是这样制作的)。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60821272

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档