鱼C论坛

 找回密码
 立即注册
查看: 1593|回复: 1

[已解决]我用PyCharm升级python3.8中的pip20.1.1到20.2.2,提示报错。

[复制链接]
发表于 2020-9-3 16:46:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
我用PyCharm升级python3.8中的pip20.1.1到20.2.2,提示报错。
我是用的Liunx系统,请问各位大佬,这该怎么弄呢?以前升级都没出现过这个问题。



Executed command:
       pip install -U pip==20.2.2
Error occurred:
       ERROR: Could not find a version that satisfies the requirement pip==20.2.2 (from versions: none)
Proposed solution:
       Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/local/bin/python3.8'.
Command output:
        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
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

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/
ERROR: Could not find a version that satisfies the requirement pip==20.2.2 (from versions: none)
ERROR: No matching distribution found for pip==20.2.2
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
最佳答案
2020-9-4 00:49:00

前段时间我也遇到的问题,后面解决了,按照这个帖子来:

Python FAQ 044 pip安装出现WARNING: ... require TLS/SSL 警告,导致无法正常安装
https://fishc.com.cn/thread-175728-1-1.html
(出处: 鱼C论坛)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-9-4 00:49:00 | 显示全部楼层    本楼为最佳答案   

前段时间我也遇到的问题,后面解决了,按照这个帖子来:

Python FAQ 044 pip安装出现WARNING: ... require TLS/SSL 警告,导致无法正常安装
https://fishc.com.cn/thread-175728-1-1.html
(出处: 鱼C论坛)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-18 20:14

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表