pip install seqeval 报错:error: subprocess-exited-with-error
报错信息如下
Collecting seqeval
Using cached http:///pypi.tuna.tsinghua.edu.cn/simple/repository/pypi/packages/seqeval/1.2.2/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
╰─> [41 lines of output]
/usr/local/lib/python3.9/site-packages/setuptools/__init__.py:85: _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)
WARNING: The repository located at 10.252.122.53 is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host 10.252.122.53'.
WARNING: The repository located at 10.252.122.73 is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host 10.252.122.73'.
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 "/usr/local/lib/python3.9/site-packages/setuptools/installer.py", line 97, in _fetch_build_egg_no_warn
subprocess.check_call(cmd)
File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp7qlcb6cv', '--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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-wkr3reb8/seqeval_3ebb9a329bbe4b708b6997912d75d8a8/setup.py", line 27, in <module>
setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 107, in setup
_install_setup_requires(attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
_fetch_build_eggs(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 85, in _fetch_build_eggs
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 894, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
File "/usr/local/lib/python3.9/site-packages/setuptools/installer.py", line 39, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 815, in resolve
dist = self._resolve_dist(
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 851, in _resolve_dist
dist = best[req.key] = env.best_match(
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1123, in best_match
return self.obtain(req, installer)
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1135, in obtain
return installer(requirement)
File "/usr/local/lib/python3.9/site-packages/setuptools/installer.py", line 99, in _fetch_build_egg_no_warn
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/local/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp7qlcb6cv', '--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.
解决方法:
pip install --upgrade setuptools
pip install setuptools_scm
再次执行:pip install seqeval 安装成功文章来源地址https://www.toymoban.com/news/detail-643938.html
文章来源:https://www.toymoban.com/news/detail-643938.html
到了这里,关于Python seqeval包安装报错: error: subprocess-exited-with-error 解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!