你好,当我使用pip install doccano安装doccano时,出现了一些问题,我不知道谁能帮我?

c6ubokkw  于 6个月前  发布在  其他
关注(0)|答案(3)|浏览(75)

使用缓存的 https://pypi.tuna.tsinghua.edu.cn/packages/9d/2d/233c79d5b4e5ab1dbf111242299153f3caddddbb691219f363ad55ce783d/seqeval-1.2.2.tar.gz (43 kB)
准备元数据(setup.py) ... 错误
错误:子进程退出时出错
× python setup.py egg_info 没有成功运行。
│ 退出代码:1
╰─> [43行输出]
/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/dist.py:770: UserWarning: 在将来的版本中,不再支持使用破折号分隔的'index-url'。请改用下划线名称'index_url'。
warnings.warn(
/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer已被弃用。需求应由PEP 517安装程序满足。
warnings.warn(
警告:位于mirrors.cloud.aliyuncs.com的存储库不是受信任或安全的主机,将被忽略。如果此存储库可以通过HTTPS访问,我们建议您使用HTTPS,否则您可以静默此警告并允许它无论如何通过'--trusted-host mirrors.cloud.aliyuncs.com'。
ERROR:找不到满足要求的setuptools_scm版本(从版本:无)
ERROR:没有找到与setuptools_scm匹配的发行版
Traceback (most recent call last):
File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "/root/anaconda3/envs/sklearn-env/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError:命令'['/root/anaconda3/envs/sklearn-env/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpfjz459r3', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']'返回非零退出状态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-ky2pfr85/seqeval_64549187937a423f9989e2bf40a83a17/setup.py", line 27, in <module>
      setup(
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/__init__.py", line 86, in setup
      _install_setup_requires(attrs)
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/dist.py", line 874, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/pkg_resources/__init__.py", line 789, in resolve
      dist = best[req.key] = env.best_match(
                             ^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1075, in best_match
      return self.obtain(req, installer)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1087, in obtain
      return installer(requirement)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/dist.py", line 944, in fetch_build_egg
      return fetch_build_egg(self, req)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/anaconda3/envs/sklearn-env/lib/python3.11/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['/root/anaconda3/envs/sklearn-env/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpfjz459r3', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
  [end of output]

注意:此错误源于子进程,可能不是pip的问题。
错误:元数据生成失败
× 在生成包元数据时遇到错误。
╰─> 请参阅上面的输出。
注意:这是上述包的问题,而不是pip的问题。

t98cgbkg

t98cgbkg1#

你会写你的环境吗?谢谢!

pb3s4cty

pb3s4cty2#

pip install setuptools-scm

fhity93d

fhity93d3#

pip install setuptools-scm
Great! I encounter the same problem, the command pip install setuptools-scm help me solve the problem.

相关问题