我有两个版本的python。 我想为python2.5安装psycopg2
如何运行sudo apt-get install python-psycopg2以便为python2.5而不是python2.6安装它?
由于
答案 0 :(得分:3)
ubuntu-10.04软件包python-psycopg2
旨在使用默认的python2.6安装。
为python2.5安装psycopg2,download the psycopg source并使用
python2.5 setup.py install
安装它。 (请注意对python2.5
)的调用。