ERROR: No matching distribution found for tb-nightly 原因与解决方法
今天我在用Python如下命令:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
安装东西的时候,结果报错如下
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement tb-nightly (from gfpgan) (from versions: none)
ERROR: No matching distribution found for tb-nightly
中文翻译
错误:忽略了以下需要不同python版本的版本:1.6.2需要python>=3.7,<3.10;1.6.3要求Python>=3.7,<3.10;1.7.0需要Python>=3.7,<3.10;1.7.1需要Python>=3.7,<3.10
错误:找不到满足tb-nightly要求的版本(来自gfpgan)(来自版本:none)
错误:未找到tb-nightly的匹配分布
原因
原因其实也很简单,无非就是没有找到满足tb-nightly要求的版本。
一般来说:
python版本和tb-nightly版本必须相互兼容,要达到tb-nightly所要求的Python版本才行。
之所以出现这个问题,那是因为:我用了“清华源”来安装。有时候,某些源更新可能不及时,没有全部同步到位,就会出现这样的情况。
解决方法
出现这个问题,虽然说不用“任何源”直接安装也可以,但是速度太慢了。
我又想加快速度,我只好又换一个“阿里源”来安装,命令如下:
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
结果不报任何错误了,全部成功。
相关推荐:
Windows+Linux)">Python pip换国内镜像源方法(Windows+Linux)
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/5682.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~