首页 PaddleHub 帖子详情
安装PaddleHub报错:error: subprocess-exited-with-error
收藏
快速回复
PaddleHub 问答学习资料 2029 3
安装PaddleHub报错:error: subprocess-exited-with-error
收藏
快速回复
PaddleHub 问答学习资料 2029 3

报错信息如下,恳请各位高手解答一下。

Using cached

/pypi/packages/9d/2d/233c79d5b4e5ab1dbf111242299153f3caddddbb691219f363ad55ce783d/seqeval-1.2.2.tar.gz (43 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /setuptools-scm/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /setuptools-scm/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /setuptools-scm/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /setuptools-scm/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /setuptools-scm/
ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm
Traceback (most recent call last):
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "e:\Anaconda\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['e:\\Anaconda\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\ioriliao\\AppData\\Local\\Temp\\tmp2ujuwfaj', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\ioriliao\AppData\Local\Temp\pip-install-0dgt_k4d\seqeval_04933e857df4412fb00de30c8eaed3f5\setup.py", line 27, in
setup(
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 874, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\pkg_resources\__init__.py", line 789, in resolve
dist = best[req.key] = env.best_match(
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\pkg_resources\__init__.py", line 1075, in best_match
return self.obtain(req, installer)
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\pkg_resources\__init__.py", line 1087, in obtain
return installer(requirement)
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\dist.py", line 944, in fetch_build_egg
return fetch_build_egg(self, req)
File "C:\Users\ioriliao\AppData\Roaming\Python\Python39\site-packages\setuptools\installer.py", line 84, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['e:\\Anaconda\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\ioriliao\\AppData\\Local\\Temp\\tmp2ujuwfaj', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

0
收藏
回复
全部评论(3)
时间顺序
A
AIStudio10003591
#2 回复于2023-01

你好,从这个报错信息不太好判断是啥原因。这边建议使用anaconda之类的环境管理工具,在里面创建一个新的python环境,然后再使用pip install paddlehub 安装试试

0
回复
风之羽516
#3 回复于2023-10

解决了吗

0
回复
z
zzzYYYHHH
#4 回复于2023-10

报错信息里面有一个提示,把pip install 改成 pip install --use-pep517就可以了

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户