python - After installing django in virtual environment, still can't import module -
i trying use django web dev, after install it, try use import in interpreter , says gives me import error. here do.
virtualenv venv --distribute source venv/bin/activate
so in virtual environment (venv)
pip install django python import django
then importerror
import django traceback (most recent call last): file "", line 1, in importerror: no module named 'django' import django traceback (most recent call last): file "", line 1, in importerror: no module named 'django'
original poster here.
i installed django using pip in python 2.7 binaries while working python 3.5.
using pip3 install django solved it.