stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Cannot install on 64-bit Windows 10
Is there an existing issue for this?
- [x] I have searched the existing issues and checked the recent builds/commits
What happened?
See the console logs below.
Steps to reproduce the problem
- Install Git and Python 3.10.6 and add it to
%PATH%
. - Clone the repository.
- Double-click
webui-user.bat
without the Administrator user.
What should have happened?
Install this software successfully.
Commit where the problem happens
master branch on June 11, 2023
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (GTX 16 below)
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
No
List of extensions
No
Console logs
venv "D:\Program Files\Automatic1111\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: <none>
Commit hash: <none>
Installing gfpgan
Traceback (most recent call last):
File "D:\Program Files\Automatic1111\stable-diffusion-webui\launch.py", line 38, in <module>
main()
File "D:\Program Files\Automatic1111\stable-diffusion-webui\launch.py", line 29, in main
prepare_environment()
File "D:\Program Files\Automatic1111\stable-diffusion-webui\modules\launch_utils.py", line 263, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "D:\Program Files\Automatic1111\stable-diffusion-webui\modules\launch_utils.py", line 124, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "D:\Program Files\Automatic1111\stable-diffusion-webui\modules\launch_utils.py", line 101, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install gfpgan.
Command: "D:\Program Files\Automatic1111\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip --prefer-binary
Error code: 1
stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
Using cached https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip (6.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting basicsr>=1.4.2
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz (172 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting facexlib>=0.2.5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/7b/2147339dafe1c4800514c9c21ee4444f8b419ce51dfc7695220a8e0069a6/facexlib-0.3.0-py3-none-any.whl (59 kB)
Collecting lmdb
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/66/05/21a93eed7ff800f7c3b0538eb12bde89660a44693624cd0e49141beccb8b/lmdb-1.4.1-cp310-cp310-win_amd64.whl (100 kB)
Requirement already satisfied: numpy in d:\program files\automatic1111\stable-diffusion-webui\venv\lib\site-packages (from gfpgan==1.3.5) (1.24.3)
Collecting opencv-python
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/98/fab8d982e2e2b57bdebcad64c7e5b5a14ac91c657cac509b9cf3fbea49d2/opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB)
Collecting pyyaml
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/09/2f6f4851bbca08642fef087bade095edc3c47f28d1e7bff6b20de5262a77/PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
Collecting scipy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/e3/b06ac3738bf365e89710205a471abe7dceec672a51c244b469bc5d1291c7/scipy-1.10.1-cp310-cp310-win_amd64.whl (42.5 MB)
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.2.1 -> 23.1.2
[notice] To update, run: D:\Program Files\Automatic1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Additional information
No
Shall I install Python 3.9?
You should try with python 3.9.
Python 3.10.6 is the officially recommended version. I don't see the point of trying version 3.9. From the log content you posted, it looks like gfpgan installation went wrong at first. The log clearly states: RuntimeError: Couldn't install gfpgan.
I suggest upgrading pip to the latest version first, and then try again. Also make sure your network can connect normally to the pip source.
If it's a problem connecting to the pip source, you can try changing to other pip sources, or manually download the corresponding version of the gfpgan installation file and install it manually.
- Install the officially supported version of python for the webui (3.10.6)
- Since you are using Windows, make sure to type "env" in your search bar, open "Edit the system environment tables"
- In the new window click on "Environment Variables...", in System Variables (not confuse with User variables)
- Double click the line that says "Path", and make sure that Python 3.10.6 is at the top of the list, and also remove any other python version in there (it is not recommended but many people have reported that the webui still uses other versions of python even if its at the top of the list)
- Reinstall the Webui in a new directory (preferably in the root of your hard drive, which in this case would be
D:
, next to yourProgram Files
folder) with Git installed in your computer with theclone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
command. At the end it should look likeD:/stable-diffusion-webui
.
I hope this works for you!
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7681#issuecomment-1438179845
你是不是用了清华的源?切成阿里云的源就可以了。
有谁有解决的办法了吗?我更新了pip,不会提示pip需要更新了,但是
``` 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
这个问题依然存在。
有谁有解决的办法了吗?我更新了pip,不会提示pip需要更新了,但是
``` 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
这个问题依然存在。
你需要魔法……
或者下载gfpgan,手动安装。 https://pypi.org/project/gfpgan/
谁有解决的办法了吗?我更新了pip,不会提示pip需要更新了,但是
``` 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
这个问题依然存在。
你需要魔法……
或者下载gfpgan,手动安装。 https://pypi.org/project/gfpgan/
好吧,我也发现了,虽然我在俄罗斯没有墙,但可能还是需要魔法,因为PaperModel.md显示404了
同 issue,更改一下本地 python pip 的配置文件,不要使用清华镜像,直连官方源安装可以解决
还真是清华源的问题,感谢楼上几位的讨论,把conda和pip的清华源都删掉,缓存也记得都清空,就能正常安装了,而且pip不需要额外更新
你好,能提供这方面的教程吗?新手没接触过。
清华的源同步的不完整,推荐用官方源
https://pypi.tuna.tsinghua.edu.cn/
This is most likely related to that PyPI mirror you're using.
RuntimeError: Couldn't install gfpgan.报错解决方案 进入stable-diffusion-webui==>venv==>Scripts,输入命令python,检查是否是python3.10.6。ctrl+z退出,输入python -m pip install --upgrade pip; 然后pip install gfpgan -i https://pypi.org/simple。 使用的官方源,国内不行的试试阿里的源,清华的源我的就不行。然后回到stable-diffusion-webui下重新运行webui-user.bat
你TND真是个天才,果然是清华pip镜像的问题。
你是不是用了清华的源?切成阿里云的源就可以了。
折磨了很久,确实是这个sb问题,感谢
你是不是用了清华的源?切成阿里云的源就可以了。
流弊了!大佬~!
雀食,改了默认的pip源就成功了 $pip config list global.index-url='https://mirrors.ustc.edu.cn/pypi/web/simple'
$ pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/