[英]psycopg2 install mutliple versions of python
I have two version of python. 我有两个版本的python。 I would like to install psycopg2 for python2.5
我想为python2.5安装psycopg2
How can I run sudo apt-get install python-psycopg2 so it installs it for python2.5 and not python2.6 ? 我如何运行sudo apt-get install python-psycopg2,以便它为python2.5而不是python2.6安装?
Thanks 谢谢
The ubuntu-10.04 package python-psycopg2
is designed to work with the default python2.6 installation. ubuntu-10.04软件包
python-psycopg2
设计用于默认的python2.6安装。
To install psycopg2 for python2.5, download the psycopg source and use 要为python2.5安装psycopg2,请下载psycopg源并使用
python2.5 setup.py install
to install it. 安装它。 (Note the call to
python2.5
). (注意对
python2.5
的调用)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.