The error is due to your ~/.bashrc or ~/.zshrc file doesn’t have django path properly point.
It took me 3 days to fix the error after several searching here and there
- Add django to your path. open python,
import django
, then rundjango
to see django’s path. then add it to your~/.bashrc
(or~/.zshrc
if you’re usingzsh
). more info in here
export PATH =" put your path here "
Save the file and that should solve the problem