[Answered ]-Django installation on MS Windows, manage.py "Couldn't import Django"

2👍

This could possibly happen if we are not invoking the right version of PIP.
In case you have 2 versions of Python and you want to install over Python 3.4, you need to select pip3 from the absolute path, just in case if there is something else that could precede in the environment variables.

The simplest way is to select the right version of pip from the absolute path as below:

C:\Python34\Scripts>pip3 install django
👤Kenny

0👍

Maybe command line “python manage.py runserver” can start it.I meet the same question,though I configured the PATH environment.
enter image description here

0👍

If you used window 10 for Django Framework then you can follow these steps maybe it helps for you

Pip install virtualenvwrapper-win
Mkvirtualenv test
Pip install django
Mkdir projects
Django-admin startproject project_name
Python manage.py runserver

I am very new in python and Django I follow the above steps for setup the env and startup the first project.

The above first command create the virtual Wrapper for you
and the second command will create the virtual env inside the Wrapper.
Then we have to install the django inside the venv.
These virtul env is not accessable to new command prompt.

Suppose next time when you want to work on the same venv you need to type

Workon test

In my case test is env name. so it will open you vevn.

May be it will help for you or who are new in python.

Leave a comment