ImportError: No module named Cython.Distutils

前端 未结 12 723
广开言路
广开言路 2020-12-13 13:01

I\'m having a strange problem while trying to install the Python library zenlib, using its setup.py file. When I run the setup.py file

12条回答
  •  自闭症患者
    2020-12-13 13:26

    Read like a thousand of these threads and finally got it for Python 3. (replace pip with pip3 if you have that kind of installation, and run pip uninstall cython if you have tried other solutions before running any of these)

    Mac:

    brew install cython
    pip install --upgrade cython
    

    Ubuntu

    sudo apt-get install cython3 python-dev  
    pip install --upgrade cython
    

    Windows (must have conda, and MinGW already in path)

    conda install cython
    conda install --upgrade cython
    

提交回复
热议问题