No module of _ffi found when create superuser

29 Views Asked by At

Python manage.py createsuperuser in django project in virtuelenv, reporting error: No module of _ffi found.

Error Image 1 Error image 2

I got some clue from google. for example update cffi and argon2, run python from different locations. But nothing works. Thanks in advance!

1

There are 1 best solutions below

1
Amirhosseyn On

It looks like you are using a library which is missing in your environment. So if you have a requirements.txt file in your project try to run pip install -r requirements.txt. I think it is a duplicate of this one tbh.