psycopg2安装python的多个版本

时间:2011-05-21 23:10:40

标签: python linux ubuntu-10.04

我有两个版本的python。 我想为python2.5安装psycopg2

如何运行sudo apt-get install python-psycopg2以便为python2.5而不是python2.6安装它?

由于

1 个答案:

答案 0 :(得分:3)

ubuntu-10.04软件包python-psycopg2旨在使用默认的python2.6安装。

为python2.5安装psycopg2,download the psycopg source并使用

python2.5 setup.py install

安装它。 (请注意对python2.5)的调用。