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)