Install psycopg2 on Ubuntu

后端 未结 6 1920
梦谈多话
梦谈多话 2020-12-28 12:05

I\'m trying to get the python postgres client module installed on Ubuntu 12.04. The guidance is to do the following:

apt-get install python-psycopg2
         


        
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-28 12:43

    This works for me in Ubuntu 12.04 and 15.10

    if pip not installed:

    sudo apt-get install python-pip
    

    and then:

    sudo apt-get update
    sudo apt-get install libpq-dev python-dev
    sudo pip install psycopg2
    

提交回复
热议问题