简体   繁体   中英

psycopg2 install mutliple versions of python

I have two version of python. I would like to install psycopg2 for python2.5

How can I run sudo apt-get install python-psycopg2 so it installs it for python2.5 and not python2.6 ?

Thanks

The ubuntu-10.04 package python-psycopg2 is designed to work with the default python2.6 installation.

To install psycopg2 for python2.5, download the psycopg source and use

python2.5 setup.py install

to install it. (Note the call to python2.5 ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM