SetuptoolsDeprecationWarning: Invalid dash-separated options

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 future
          versions. Please use the underscore name 'index_url' instead.
  
          By 2023-Sep-26, you need to update your project and remove deprecated calls
          or 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_scm
  Traceback (most recent call last):
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warn
      subprocess.check_call(cmd)
    File "/root/anaconda3/envs/LLM/lib/python3.11/subprocess.py", line 413, in check_call
      raise 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 "", line 2, in 
    File "", line 34, in 
    File "/tmp/pip-install-j6mf9__c/wavedrom_4d1f3b365de04736998f05b09f720fbe/setup.py", line 28, in 
      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_eggs
      dist.fetch_build_eggs(dist.setup_requires)
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/dist.py", line 917, in fetch_build_eggs
      return _fetch_build_eggs(self, requires)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 827, in resolve
      dist = self._resolve_dist(
             ^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 863, in _resolve_dist
      dist = best[req.key] = env.best_match(
                             ^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1133, in best_match
      return self.obtain(req, installer)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1145, in obtain
      return installer(requirement)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/LLM/lib/python3.11/site-packages/setuptools/installer.py", line 98, in _fetch_build_egg_no_warn
      raise DistutilsError(str(e)) from e
  distutils.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

你可能感兴趣的:(计算机应用技术,dash)