Preparing metadata (setup.py) … error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [69 lines of output]
/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************Usage of dash-separated 'index-url' will not be supported in futureversions. Please use the underscore name 'index_url' instead.By 2023-Sep-26, you need to update your project and remove deprecated callsor your builds will no longer be supported.See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.********************************************************************************!!opt = self.warn_dash_deprecation(opt, section)/root/anaconda3/envs/LLM/lib/python3.11/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)WARNING: The repository located at mirrors.cloud.aliyuncs.com 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 mirrors.cloud.aliyuncs.com'.ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)ERROR: No matching distribution found for setuptools_scmTraceback (most recent call last):File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warnsubprocess.check_call(cmd)File "/root/anaconda3/envs/LLM/lib/python3.11/subprocess.py", line 413, in check_callraise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '['/root/anaconda3/envs/LLM/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3e69rg1o', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', '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-j6mf9__c/wavedrom_4d1f3b365de04736998f05b09f720fbe/setup.py", line 28, in <module>setup(File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py", line 106, in setup_install_setup_requires(attrs)File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py", line 79, in _install_setup_requires_fetch_build_eggs(dist)File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/__init__.py", line 84, in _fetch_build_eggsdist.fetch_build_eggs(dist.setup_requires)File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/dist.py", line 917, in fetch_build_eggsreturn _fetch_build_eggs(self, requires)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggsresolved_dists = pkg_resources.working_set.resolve(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 827, in resolvedist = self._resolve_dist(^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 863, in _resolve_distdist = best[req.key] = env.best_match(^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1133, in best_matchreturn self.obtain(req, installer)^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1145, in obtainreturn installer(requirement)^^^^^^^^^^^^^^^^^^^^^^File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 98, in _fetch_build_egg_no_warnraise DistutilsError(str(e)) from edistutils.errors.DistutilsError: Command '['/root/anaconda3/envs/LLM/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp3e69rg1o', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', '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.
解决办法不难:
pip install setuptools-scm
pip install seqeval