在使用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
今天在发布的时候,出现了 下载本地 localhost:***.***.***.**/.../maven-
metadata.xml 然后停在那无法继续... 初步判断是锁的问题.但是不知道怎么解决.
不知道关键字没对,在stackoverflow上也没找到解决方案. 幸亏在找到了.
pip install weditor 出错,提示Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting weditor
Using cachedhttps://pypi.tuna.tsinghua.edu.cn/packages/04/9b/ec6c2b8ab08f
问题一:AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’
大意是缺少依赖,可以依次使用以下方法:
方法一:升级pip
但是对我而言升级pip没有用
参考链接:[Solved] AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' - Excep..