你好,魔塔安装反馈(环境ubantu、cpu环境、python3.7,tensorflow=1.15),然后没有安装其他模型(多模态等)直接安装cv模型,然后报这个错 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 36, in File "", line 34, in File "/tmp/pip-install-qopg29lb/cython-bbox_e2a6cf22dd0d4dea86fa8836c786b9e0/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.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
根据错误提示,安装过程中缺少 Cython 模块导致了安装失败。因为 bbox 模块需要在安装时进行 Cython 编译,因此需要先安装 Cython 模块,才能成功安装 bbox 模块。
你可以使用以下命令安装 Cython 模块:
pip install cython
然后再重新安装 bbox 模块:
pip install mota[cv]
注意在安装 bbox 模块时需要指定 [cv] 参数,表示只安装其中的 cv 模块。