Search code examples
pythonsetuptoolseasy-install

Get easy_install to work with more recent version of Python


Python 2.4 was the default on my CentOS5 system. I now have Python 2.6 running and I am trying to do an easy_install.

I installed the setuptools egg file for Python 2.6. py26 is on username.sitename.com while python 2.4 is installed system wide so I currently just get a permission denied error when i run

easy_install mysqldb

because it is trying to modify the 2.4 installation.

How do I get this to work with Python 2.6 in my subdomain?


Solution

  • Actually easy_install has the option of specifying the Python version to use a la:

    easy_install-N.N 
    

    So in this case I just do easy_install-2.6

    Should have looked it up more closely before posting!

    using easy-install