ERROR: Could not find a version that satisfies the requirement xxxxx (from xxxx==1.0.8)解决办法

python pip安装第三库报错

  • ERROR: Could not find a version that satisfies the requirement wxpython4.1.0 (from Gooey1.0.8) (from versions: none)
  • ERROR: No matching distribution found for wxpython==4.1.0

参考网上博客的方法

pip install gooey -i http://mirrors.aliyun.com/pypi/simple/ 阿里云
pip install gooey -i https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
pip install gooey -i https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学
pip install gooey -i http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

  • 尝试1:将gooey.whl下载之后再进行安装,pip install Gooey-1.0.8-py2.py3-none-any.whl ===》失败
  • 尝试2:pip install gooey -i https://mirrors.tuna.tsinghua.edu.cn/ ===》失败
  • 尝试3:pip install gooey -i http://mirrors.ustc.edu.cn/ ===》失败
  • 尝试4:pip install gooey -i http://mirrors.aliyun.com/ ===》失败
  • 尝试5:pip install gooey -i http://pypi.douban.com/simple/ ===》成功 或者
  • pip install gooey -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

报错原因

  • 安装某一个库时,只要其某一个依赖库不在pypi的官方镜像库里,则会报以上找不到某个库的错误
  • 因此,要么逐个寻找所有的依赖库,依次安装,要么找国内的python第三方镜像库,前提是该镜像库里包含所有的依赖库,才会显示安装成功,因此,对于gooey的python库,好像豆瓣镜像库就ok
C:\Users\adc\Downloads>pip install Gooey -i  http://pypi.douban.com/simple/ 
Looking in indexes: http://pypi.douban.com/simple/
Requirement already satisfied: Gooey in c:\users\adc\anaconda3\lib\site-packages (1.0.8)
Requirement already satisfied: wxpython==4.1.0 in c:\users\adc\anaconda3\lib\site-packages (from Gooey) (4.1.0)
Requirement already satisfied: pygtrie>=2.3.3 in c:\users\adc\anaconda3\lib\site-packages (from Gooey) (2.4.2)
Requirement already satisfied: Pillow>=4.3.0 in c:\users\adc\anaconda3\lib\site-packages (from Gooey) (7.1.1)
Requirement already satisfied: psutil>=5.4.2 in c:\users\adc\anaconda3\lib\site-packages (from Gooey) (5.6.7)
Requirement already satisfied: colored>=1.3.93 in c:\users\adc\anaconda3\lib\site-packages (from Gooey) (1.4.2)
Requirement already satisfied: six in c:\users\adc\anaconda3\lib\site-packages (from wxpython==4.1.0->Gooey) (1.14.0)
Requirement already satisfied: numpy; python_version >= "3.0" in c:\users\adc\anaconda3\lib\site-packages (from wxpython==4.1.0->Gooey) (1.16.4+mkl)
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值