[Django]-Couldn't import Django error when I try to startapp

15👍

Try using

python -m pip install django

This is the safest way as far as I know

5👍

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

env\Scripts\activate in cmd

Now cmd should have (env) just like this: (env) c:\users\user\PROJECT\..

Now you can type: python manage.py runserver

0👍

I also had the same problem when I use Pycharm. I solved it by adding:

import sys
  sys.path.append('/Users/et/PycharmProjects/Jieba_Analyzer/venv/lib/python3.6/site-packages')

to manage.py

Leave a comment