[Answered ]-Couldn't import django in virtualenv but works when deactivated

2👍

ok I found out what the problem was. It turns out when I started my virtualenv I used sudo command but when I pip install my packages I didn’t use the sudo command which caused a permission problem or some sort when installing the packages. So it made django not showing up on the path. When starting a virtual env never use the sudo command…

0👍

1- install python3
brew install python3
2- install django
pip3 install django

Leave a comment