解决MAC笔记本Stable Diffusion安装时报No matching distribution found for tb-nightly的问题

安装时报如下错误:

stderr: 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.0rc1 Requires-Python >=3.7,<3.10; 1.7.0rc2 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

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip

重点看“No matching distribution found for tb-nightly”这个报错。这个错误是说明,我们的pip源中没有对应的“tb-nightly”依赖包。

查看pip的配置:pip config list,看到配置如下:

global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'

这说明,使用的清华的pip源中缺少tb-nightly这个包。那我们就换个阿里的源,使用如下命令:

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

再来查看:pip config list,配置已经变成阿里的地址了:

global.index-url='https://mirrors.aliyun.com/pypi/simple'

重新执行安装: ./webui.sh

你可能感兴趣的:(macos,数学建模,python,开发语言)