ModuleNotFoundError: No module named 'Cython'

具体报错信息如下;

  ERROR: Command errored out with exit status 1:
     command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cm6j68d4/pycocotools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cm6j68d4/pycocotools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-cm6j68d4/pycocotools/pip-egg-info
         cwd: /tmp/pip-install-cm6j68d4/pycocotools/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "", line 1, in <module>
      File "/tmp/pip-install-cm6j68d4/pycocotools/setup.py", line 2, in <module>
        from Cython.Build import cythonize
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ModuleNotFoundError: No module named 'Cython'_第1张图片

解决


linux 的中的Python是3.7版本

python3.7 -m pip install cython

你可能感兴趣的:(LINUX)