在安装Stable Diffusion WebUI时,pip install安装的时候在Preparing metadata (setup.py) ...卡住
经过反复尝试也无法解决,经网上搜索发现--verbose这个参数,重新运行后发现如下信息:
pip install basicsr==1.4.2 --verbose
Using pip 23.1.2 from /root/miniconda3/envs/stable/lib/python3.10/site-packages/pip (python 3.10)
Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple
Collecting basicsr==1.4.2
Using cached https://repo.huaweicloud.com/repository/pypi/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz (172 kB)
Running command python setup.py egg_info
/root/miniconda3/envs/stable/lib/python3.10/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
^C Preparing metadata (setup.py) ... canceled
根据提示重新执行安装程序,显示可以正常安装了:
pip install basicsr --use-pep517 --verbose
还有一个问题还没搞明白,为什么加use-pep517这个参数,等后续有空研究了再分享给大家!!!