【Tensorflow】ERROR: Could not find a version that satisfies the requirement tqdm (from versions: none
程序员文章站
2022-04-26 14:39:17
...
运行Github下来的文件,报错:
ImportError: No module named 'tqdm'
用pip下载:
pip3 install tqdm
报错:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/tqdm/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/tqdm/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/tqdm/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/tqdm/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/tqdm/
ERROR: Could not find a version that satisfies the requirement tqdm (from versions: none)
ERROR: No matching distribution found for tqdm
感觉是网络原因,用阿里云镜像:
pip3 install tqdm -i http://mirrors.aliyun.com/pypi/simple/
依然报错:
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement tqdm (from versions: none)
ERROR: No matching distribution found for tqdm
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
有人说可以通过多试几次解决,但是试了很多遍仍然不行。
换镜像源试试:
pip3 install tqdm -i https://pypi.tuna.tsinghua.edu.cn/simple
成功!!
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tqdm
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/47/55/fd9170ba08a1a64a18a7f8a18f088037316f2a41be04d2fe6ece5a653e8f/tqdm-4.43.0-py2.py3-none-any.whl (59 kB)
|████████████████████████████████| 59 kB 1.1 MB/s
Installing collected packages: tqdm
Successfully installed tqdm-4.43.0
总结:如果确定是网络问题的话不只要多试几次,还可以换镜像源。(这种问题碰到不止一次了还是不长教训。。
可用镜像源:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
上一篇: 美女拒绝色狼搭讪的智慧妙答
下一篇: 吃顿好的好上路