Probably, pip
installs packages into dist-packages
directory, which is not included into PYTHONPATH
environment variable. You have a couple of solutions:
- Create and configure
virtualenv
for your project, before usingpip
. This is the most Pythonic way -
Try to install
Django
using built-in pip module:python -m pip install django
This command should install packages into
site-packages
directory. - You may also add
dist-packages
to yourPYTHONPATH
. This question should help you: How to globally modify the default PYTHONPATH (sys.path)?