简体   繁体   English

python3.8 virtualenv pip没有升级

[英]python3.8 virtualenv pip not upgrading

On running following command在运行以下命令时

pip install --upgrade pip

it shows following error even I can't install any other packages as it says upgrade pip first.它显示以下错误,即使我无法安装任何其他软件包,因为它说先升级 pip。

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.

if i run如果我跑

pip list

i have following packages我有以下包裹

Package    Version
---------- -------
pip        19.3.1 
setuptools 42.0.2 
wheel      0.33.6 

The problem is not with pip's version, but with ssl.问题不在于 pip 的版本,而在于 ssl。 The version of python you installed does not have the ssl module, which can occur if you compiled python without installing the libssl-dev headers.您安装的 python 版本没有 ssl 模块,如果您编译 python 而不安装 libssl-dev 头文件,就会发生这种情况。 (Or the version you downloaded was made so). (或者你下载的版本是这样制作的)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 shell 脚本在 ubuntu 服务器中设置 python3.8,对应的 pip 和 virtualenv - Setup python3.8, corresponding pip and virtualenv in ubuntu server via shell script Ubuntu 18.04 和 python3.8 上的错误“pip install mysqlclient” - ERROR 'pip install mysqlclient' on Ubuntu 18.04 and python3.8 为什么将 Python 升级到 3.8 后 Pip 不工作? - Why is Pip not working after upgrading Python to 3.8? pipenv、jupyter 和其他可能的命令在将 python3.7 升级到 python3.8 后停止工作 - pipenv, jupyter and possibly other commands stopped working after upgrading python3.7 to python3.8 Python 3.9.1 试图从 /usr/local/lib/python3.8 安装 pip 问题 - Python 3.9.1 trying to pull pip installs from /usr/local/lib/python3.8 Issue 从 python 3.7.6 升级到 python 3.8 后出现 Pip 错误 - Pip error after upgrading from python 3.7.6 to python 3.8 Pip安装pandas结果报错(Python3.8、Pycharm、Apple Silicon) - Pip install pandas results in error (Python3.8, Pycharm, Apple Silicon) 由于证书错误,pip3 无法为 Python3.8 安装 - pip3 can't install for Python3.8 due to certificate errors 将Python 2.5升级到Python 2.6后解决pip / virtualenv的惨败吗? - Resolve pip/virtualenv fiasco after upgrading Python 2.5 to Python 2.6? TypeError:'int'对象在python3.8中不可下标 - TypeError: 'int' object is not subscriptable in python3.8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM