Couldn't import Django error when I try to startapp
<p>I usually work on PC's but started to work on projects on my mac. I run Python 3 and when I started a new project I did the following:</p>

<p>1) In main project folder, installed virtualenv and activated it.</p>

<p>2) Install Django and Gunicorn</p>

<p>3) Did startproject</p>

<p>When I try to python3 manage.py startapp www I get an error that Django could not be imported. Below is what was in the terminal:</p>

<pre><code>(venv) AB:directory AB$ pip freeze
Django==1.10
gunicorn==19.6.0

(venv) AB:directory AB$ ls
directory   manage.py

(venv) AB:directory AB$ python3 manage.py startpap www

Traceback (most recent call last):
  File "manage.py", line 8, in &lt;module&gt;
    from django.core.management import execute_from_command_line
ImportError: No module named 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 14, in &lt;module&gt;
    import django
ImportError: No module named 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 17, in &lt;module&gt;
    "Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
</code></pre>

<p>I had the same problem, make sure you activated virtualenv, since once you close cmd it is no longer activated:</p>

<p><code>env\Scripts\activate</code> in cmd</p>

<p>Now cmd should have (env) just like this: <code>(env) c:\users\user\PROJECT\..</code></p>

<p>Now you can type: <code>python manage.py runserver</code></p>

python django python-3.x