pip install glob3报错

pip install glob3安装失败报错:
ERROR: Could not find a version that satisfies the requirement glob3 (from versions: none)
ERROR: No matching distribution found for glob3
换了国内源依然报这个错

img


不知道应该如何解决

意思是没有匹配你目前python版本的这个glob3包,可以看看自己的python啥版本的,然后查一下适合下载对应的glob3版本是什么,直接pip install glob3 version==版本号,即可解决。

再试一下下面几个网站试试
pip3 install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com //豆瓣镜像网站
pip3 install 安装包名字 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com //豆瓣
pip3 install 安装包名字 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn //清华大学
pip3 install 安装包名字 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com //阿里云
pip3 install 安装包名字 -i https://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn //中国科技大学
pip3 install 安装包名字 -i http://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn //中国科学技术大学

1,import glob 先看下是否你本来就已经有了
2,然后python下并没有glob3这个包,你直接pip3 install glob2 或者 pip install glob2

先检查一下自己的 python 版本,镜像里没有匹配的 glob3 包

  1. 输入:easy_install pip
  2. 然后 pip install glob3

应该是pip 的问题!

没有 glob3 这个库!

img

直接import glob就可以了,现在是标准包。python3有

没有必要安装,这个包,已经有了。直接import就行

python3自带了,确实可以直接import glob使用了。