ImportError: No module named Cython.Distutils

前端 未结 12 727
广开言路
广开言路 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:09

    Your sudo is not getting the right python. This is a known behaviour of sudo in Ubuntu. See this question for more info. You need to make sure that sudo calls the right python, either by using the full path:

    sudo /usr/local/epd/bin/python setup.py install
    

    or by doing the following (in bash):

    alias sudo='sudo env PATH=$PATH'
    sudo python setup.py install
    

提交回复
热议问题