Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install cython for python3.x .I have an ubuntu installation with python 2.6, 2.7 and 3.2 on it. Trying to apt-get the cython package installs pymodules only in 2.x versions. Is there a way to target a specific version?

share|improve this question
up vote 0 down vote accepted

According to the Cython Wiki, you have a few choices for installing. One of them is:

sudo apt-get install python-dev build-essential

You can also download the latest version from Cython. Just untar/unzip the package, and then run (as superuser/sudo/root):

python setup.py install
share|improve this answer
    
The apt-get command did not install cython. I suppose that I should browse the cython source code for available options. As for the second, the python alias is bound to python2.7, should I try something like python3.2 setup.py install ? – kaiseroskilo Feb 11 '12 at 19:11
    
@kaiseroskilo you could try that, I don't believe it matters, it seems – Simon Sheehan Feb 11 '12 at 19:36

python 2 and 3 are in separate packages so for normal python 2.7.6

sudo apt-get install  cython

and for python3

sudo apt-get install  cython3
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .