trouble with python manage.py migrate -> No module named psycopg2

前端 未结 3 898
慢半拍i
慢半拍i 2021-01-19 06:25

I am having some trouble with migrating Django using postgresql.

This is my first time with Django, and I am just following the tutorial.

As suggested on the

3条回答
  •  天命终不由人
    2021-01-19 07:10

    Psycopg is the most popular PostgreSQL database adapter for the Python programming language. I was also facing a similar problem when I tried to run the migration with Postgresql database. The below step worked for me fine.

    Activate your Virtual Environment and run the following command

    pip install psycopg2-binary
    

    Now try running python manage.py migrate

提交回复
热议问题