Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'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
up vote 2 down vote accepted

Chose which version of python to use

python 2.x

python install

python 3.x

python3 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

Your Answer


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.