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
Ran into this again in modern times. The solution was simple:
pip uninstall cython && pip install cython
For python3 use
sudo apt-get install cython3
For python2 use
sudo apt-get install cython
Details can be read at this
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
Install Cython:
pip install cython
Run
which python
Thats the path to the python that your system has defaulted too then go to @tiago's method of:
sudo <output of which python> setup.py install
I only got one advice for you : Create a virtualenv. This will ensure you have only one version of python and all your packages installed locally (and not on your entire system).
Should be one of the solutions.