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

报错内容如下图所示:

安装cython_bbox报错解决办法:Preparing metadata (setup.py) ... error error: subprocess-exited-with-error_第1张图片

Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "", line 2, in 
        File "", line 34, in 
        File "/tmp/pip-install-a509pn1e/cython-bbox_4f8cde4aec364123b4ba34e507b2a155/setup.py", line 10, in 
          from Cython.Build import cythonize
      ModuleNotFoundError: No module named 'Cython'
      [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.

解决办法:

先安装Cpython然后再安装cython_bbox

pip install Cython
pip install cython_bbox
安装cython_bbox报错解决办法:Preparing metadata (setup.py) ... error error: subprocess-exited-with-error_第2张图片

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

你可能感兴趣的:(python,人工智能,python,pip,深度学习)