After using easy_install I find that I am still unable to upgrade the default Python version for my newly installed Ubuntu system. The main error, from what I can tell, is that I'm missing the 'pyconfig.h' directory. Why isn't this included with the source files from Python.org, or if it is, how can I find it to complete the upgrade? Am I missing steps or another package?


1 Answer 1


If you think easy_install has anything to do with upgrading the python interpreter itself, my answer is: don't do it. easy_install is a script that installs or upgrades additional python packages - not python itself ... and in almost all cases it is better to use pip for that for quite some years already.

The preinstalled python 2.x and 3.x are heavily used by the system itself and have exactly the version that the system needs. Upgrades of the python version are done by the system if necessary, as part of the normal system updates.

If you need a different python version for development it should be kept separate from the python used by the system. You usually use virtualenv for that. There is a good description how to do that in an virtualenv in a stackoverflow question

If you need a newer version of Python itself, than what the system offers I would recommend using pyenv for easy installation of additional Python versions in userspace.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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