Django Installation On MS Windows, Manage.py "Couldn't Import Django"
Solution 1:
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
Solution 2:
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
Solution 3:
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.
Post a Comment for "Django Installation On MS Windows, Manage.py "Couldn't Import Django""