I’ve been having problems installing Python on my Ubuntu machine because of errors with setup tools.
During installation you get the following error:
Installing distribute into /home/ting/.pythonbrew/pythons/Python-2.7.3 ERROR: Failed to install setuptools. See /home/ting/.pythonbrew/build.log to see why. Skip installation of setuptools.
And if you try and use pip / easy_install, you get this:
ImportError: No module named setuptools
It turns out the answer is simple, we’re missing some libraries required to compile it.
sudo apt-get build-dep python2.7
BAM! Pythonbrew works!