ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
今天在Ubuntu中的pycharm软件安装matplotlib模块时出现,如下问题,提示pip版本不符合,需要更新
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib
使用如下命令,更新pip版本,并没有成功
python -m pip install --upgrade 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
又在网上找到一种方法:
更改为国内的镜像源:(xxx为安装的包)
pip install xxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple xxx
然而还是没有用~
虽然不行,但是提醒我通过/usr/local/python3.10.0/bin/python3.10 -m pip install --upgrade pip,对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
于是我想了想,把两种方法综合一下,结果成功解决了
/usr/local/python3.10.0/bin/python3.10 -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
最近一直在网上找方法,一直没能解决,今天解决了,记录下来,希望能帮助到其他朋友~
python安装pip install报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirm
来源地址:https://blog.csdn.net/weixin_44132990/article/details/126457465
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341