Install psycopg2 on Ubuntu

后端 未结 6 1951
梦谈多话
梦谈多话 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:27

    Using Ubuntu 12.04 it appears to work fine for me:

    jon@minerva:~$ sudo apt-get install python-psycopg2
    [sudo] password for jon: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Suggested packages:
      python-psycopg2-doc
    The following NEW packages will be installed
      python-psycopg2
    0 upgraded, 1 newly installed, 0 to remove and 334 not upgraded.
    Need to get 153 kB of archives.
    

    What error are you getting exactly? - double check you've spelt psycopg right - that's quite often a gotcha... and it never hurts to run an apt-get update to make sure your repo. is up to date.

提交回复
热议问题