赞
踩
在使用pip安装basicsr库的时候卡住在Preparing metadata (setup.py) …,提示信息如下
$ pip install basicsr==1.4.2
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting basicsr==1.4.2
Downloading https://mirrors.aliyun.com/pypi/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz (172 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.5/172.5 kB 970.6 kB/s eta 0:00:00
Preparing metadata (setup.py) …
在pip安装的时候添加--verbose
参数查看卡住的详细原因
pip install --verbose basicsr
输出信息如下
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting basicsr
Downloading https://mirrors.aliyun.com/pypi/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz (172 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.5/172.5 kB 1.1 MB/s eta 0:00:00
Running command python setup.py egg_info
/home/zhouwen/.conda/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Preparing metadata (setup.py)
通过上面信息不难看出,是因为安装basicsr
的时候要求PEP 517,我们需要先升级一下setuptools
pip install --upgrade pip setuptools wheel
然后我们在安装的时候需要在pip后面加上一个参数,如下
pip install --verbose basicsr --use-pep517
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。