无法安装 YOLOX。

huangapple go评论58阅读模式
英文:

Cannot install yolox

问题

I am trying to install Yolox using the following command:

pip install yolox

I got this command from the following link:

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

I got the following error:

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 "", line 2, in

File "", line 34, in

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

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.

How can I solve this problem?

I should mention that I am installing this package on a remote machine based on ubuntu.

英文:

I am trying to install Yolox using the following command:

pip install yolox

I got this command from the following link:

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

I got the following error:

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.

How can I solve this problem?
I should mention that I am installing this package on a remote machine based on ubuntu.

答案1

得分: -1

我找到了错误。
这是因为Python版本。
在Python3.10上,此包不工作正确。
因此我将它更改为Python3.9,它正常工作。

英文:

I found the error.

It was because of the Python version.

On Python3.10 this package is not working correctly.

Therefore I changed it to Python3.9 and it worked fine.

huangapple
  • 本文由 发表于 2023年5月14日 19:03:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76247134.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定