Could not fetch URL & ERROR: Could not find a version that satisfies the requirement

在下载各种安装包时,遇见的问题,困扰了我很久很久。

在翻看了很多文章后,终于找到了几种解决的方法。

第一种:pip install XXX(包名) -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

第二种:GitHub下载代码 cd到setup.py对应路径下,使用python setup.py install 指令

第二种方法稍微麻烦一些,是在conda或者pip加上各种切换安装源都没办法下,使用的最后杀手锏

第三种:

直接在源网站搜索对应包:如https://pypi.tuna.tsinghua.edu.cn/simple/pyqt5-tools/

下载好包后,使用指令 pip install pyqt5_tools-5.14.0.1.7-cp38-cp38-win_amd64.whl

出现bug: whl is not supported wheel on this platform

https://blog.csdn.net/t18438605018/article/details/121769227

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值