Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to easily install packages to my newly installed Python3 on the latest Ubuntu release.

At present it uses python2.7 be default, so all of my easy_installs will put the packages into /usr/local/lib/python2.7/site-packages/. Obviously if I want to install the various packages in the new version via easy_install, it won't do this.

  1. Assuming easy_install is python specific, how do I specify which easy_install to use (or, how do I tell easy_install to switch Python)?
  2. Can you think of an easier way to do this? I've discovered virtualenv but don't think it's what I'm after.

Edit1: I've actually just noticed that after installing Distribute with the 'Python3' command, it has a /usr/local/lib/python3.2/dist-packages/easy-install.pth however I can't execute it. Doing a *which easy_install* gives /usr/local/bin/easy_install.

share|improve this question
    
Not really related to your problem, but I prefer pip over easy_install. pip has some nice additional features like pip uninstall. –  Timo Jul 18 '12 at 16:22
add comment

1 Answer 1

up vote 2 down vote accepted

Chose which version of python to use

python 2.x

python setup.py install

python 3.x

python3 setup.py install

Change the system's default python version

sudo update-alternatives --config python

Additional Information

How do I make the terminal run python 3.1?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.