简体   繁体   中英

Django-Admin not found despite installing Django

I am a beginner with Django, and when it comes to stuff dealing with installing packages on computers, I get confused very easily.

I've already installed Django, and yet when I try to create a project, the following message appears...

can't open file 'U:\\django-admin': [Errno 2] No such file or directory

I've seen on other questions asked, that it would require one to have a virtual environment; however, on the tutorials I've been following, it doesn't install an environment.

In order to start a Django project you have to follow below steps:

Install Python by visiting Python Official Website

Setup virtual environment and activate it

python -m venv venv

.\\venv\\scripts\\activate

Now your command prompt should change to venv>

Install Django

venv>pip install django

Please read the official document carefully.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM