[英]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.我是 Django 的初学者,当涉及到在计算机上安装软件包的事情时,我很容易感到困惑。
I've already installed Django, and yet when I try to create a project, the following message appears...我已经安装了 Django,但是当我尝试创建一个项目时,出现以下消息...
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:要启动 Django 项目,您必须遵循以下步骤:
Install Python by visiting Python Official Website访问Python 官网安装 Python
Setup virtual environment and activate it设置虚拟环境并激活它
python -m venv venv
.\\venv\\scripts\\activate
Now your command prompt should change to venv>
现在您的命令提示符应该更改为venv>
Install Django安装 Django
venv>pip install django
Please read the official document carefully.请仔细阅读官方文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.