Error: No module named psycopg2.extensions

前端 未结 18 2025
感动是毒
感动是毒 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:09

    Check if you have installed psycopg2 if not

    sudo apt-get install psycopg2
    

    Install the dependencies.

    sudo apt-get build-dep python-psycopg2
    

    These two commands should solve the problem.

提交回复
热议问题