当前位置:   article > 正文

安装cython_bbox报错解决办法:Preparing metadata (setup.py) ... error error: subprocess-exited-with-error_preparing metadata (setup.py) ... error error: sub

preparing metadata (setup.py) ... error error: subprocess-exited-with-error

报错内容如下图所示:

  1. Preparing metadata (setup.py) ... error
  2. error: subprocess-exited-with-error
  3. × python setup.py egg_info did not run successfully.
  4. │ exit code: 1
  5. ╰─> [6 lines of output]
  6. Traceback (most recent call last):
  7. File "<string>", line 2, in <module>
  8. File "<pip-setuptools-caller>", line 34, in <module>
  9. File "/tmp/pip-install-a509pn1e/cython-bbox_4f8cde4aec364123b4ba34e507b2a155/setup.py", line 10, in <module>
  10. from Cython.Build import cythonize
  11. ModuleNotFoundError: No module named 'Cython'
  12. [end of output]
  13. note: This error originates from a subprocess, and is likely not a problem with pip.
  14. error: metadata-generation-failed
  15. × Encountered error while generating package metadata.
  16. ╰─> See above for output.

解决办法:

先安装Cpython然后再安装cython_bbox

  1. pip install Cython
  2. pip install cython_bbox

注意在ubuntu系统下去安装,在windows系统上我尝试了还是安装不成功,还没发现如何解决,如果有成功方法的可评论区留言。

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/article/detail/47056
推荐阅读
相关标签
  

闽ICP备14008679号