简体   繁体   English

命令的 Django 项目设置问题:django-admin startproject xxxxxx

[英]Django project setup issue with the command : django-admin startproject xxxxxx

I started coding in python - Django just few days ago .I am using windows 10 .几天前我开始在 python-Django 中编码。我使用的是 windows 10。

I installed Django project with pip and virtual env.我使用 pip 和虚拟环境安装了 Django 项目。

but when I give this command : django-admin startproject xxxxxx但是当我给出这个命令时: django-admin startproject xxxxxx

the console is showing : Command not found: django-admin.py控制台显示: Command not found: django-admin.py

Please help me to solve the issue.请帮我解决这个问题。

Your commands are looking fine .你的命令看起来不错。

So do these things :所以做这些事情:

  1. Check if django and virtual env is installed correctly.检查 django 和 virtual env 是否安装正确。
  2. If not , then , remove virtual environment , reinstall it , then install django .如果没有,那么,删除虚拟环境,重新安装它,然后安装 django。
  3. Run the command again.再次运行命令。

If you till facing the issue , let me know by comment.如果你直到遇到这个问题,请通过评论告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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