Psycopg2-binary issue

Viewed 285

Using Django and using the psycopg2-binary library, and a postgres DB, when i try to makemigrations I get the following error--

```/Users/renoaverill/codePlatoon/week7/django-todo/project/venv/lib/python3.9/site-packages/psycopg2/_psycopg.cpython-39-darwin.so: mach-o, but wrong architecture```

any and all help will be much appriciated!

1 Answers

Please reinstall psycopg2

  1. pip uninstall psycopg2
  2. pip install psycopg2 --no-cache-dir

psycopg2 2.9.1 works good for me on MacBook Air M1

Related