aNup
aNup

Reputation: 381

while trying to create django-admin startproject :No module name django-admin

while trying to create project using django i installed globally, it says module not found.everything was working fine before i Tried to install another version python, even going back to the previous version didnt help and also tried to uninstall every pip package and reinstall again. i have set path and django is in the script folder as mentioned in the path. virtualenvironment is working fine and i can actually install django in virtual environment but not using the locally installed django.

D:\ALL_PROJECTS>python -m django-admin startproject example
C:\Users\myuser\AppData\Local\Programs\Python\Python36\python.exe: No module named django-admin

Upvotes: 4

Views: 1536

Answers (2)

Tshidiso Makinta
Tshidiso Makinta

Reputation: 1

sudo django-admin startproject myproject1 .

Upvotes: 0

Dipesh Bajgain
Dipesh Bajgain

Reputation: 839

I was facing a similar problem. what I did was deleted the django-admin files from local user and global python sites package folder, and then uninstall the django version, after that reinstalling the django version of my choice worked charm for me.

if you are confused with where the location of django-admin is then you can look by typing cmd.

where django-admin

in windows.

Upvotes: 2

Related Questions