Error: No module named psycopg2.extensions

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

    try this:
    sudo pip install -i https://testpypi.python.org/pypi psycopg2==2.7b2
    .. this is especially helpful if you're running into egg error

    on aws ec2 instances if you run into gcc error; try this
    1. sudo yum install gcc python-setuptools python-devel postgresql-devel
    2. sudo su -
    3. sudo pip install psycopg2

提交回复
热议问题