Error: No module named psycopg2.extensions

前端 未结 18 1995
感动是毒
感动是毒 2020-12-02 07:35

I am trying to set up a PostgreSQL database for my django project, which I believe I have done now thanks to the replies to my last question Problems setting up a postgreSQL

18条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 08:01

    In python 3.4, while in a virtual environment, make sure you have the build dependencies first:

    sudo apt-get build-dep python3-psycopg2
    

    Then install it:

    pip install psycopg2 
    

提交回复
热议问题