无法安装yolox

问题描述 投票:0回答:1

我正在尝试使用以下命令安装 Yolox:

pip install yolox

我从以下链接得到这个命令:

https://pypi.org/project/yolox/

我收到以下错误:

Preparing metadata (setup.py) ... error

 error: subprocess-exited-with-error


  × python setup.py egg_info did not run successfully.

  │ exit code: 1

  ╰─> [8 lines of output]

  Traceback (most recent call last):

    File "<string>", line 2, in <module>

    File "<pip-setuptools-caller>", line 34, in <module>

    File "/tmp/pip-install-e8uz9eo5/yolox_dd607ece87a3411aabef0d9d5bff591a/setup.py", line 77, in <module>

      install_requires=get_install_requirements(),

    File "/tmp/pip-install-e8uz9eo5/yolox_dd607ece87a3411aabef0d9d5bff591a/setup.py", line 49, in get_install_requirements

      with open("requirements.txt", "r", encoding="utf-8") as f:

  FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'

  [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.

我该如何解决这个问题? 我应该提到我正在基于 ubuntu 的远程机器上安装这个包。

python ubuntu yolo
1个回答
0
投票

我发现了错误。

是Python版本的问题

在 Python3.10 上这个包不能正常工作。

因此我将其更改为Python3.9并且运行良好。

© www.soinside.com 2019 - 2024. All rights reserved.