简体   繁体   English

django-admin.py startproject mysite 不工作

[英]django-admin.py startproject mysite isn't working

admin.py startproject mysite before and it worked fine but now when I try to use it nothing happens I've tried solutions from the other articles on this but none of them worked. admin.py startproject mysite之前它运行良好,但现在当我尝试使用它时没有任何反应,我已经尝试过其他文章中的解决方案,但没有一个起作用。 Please help I keep getting this error请帮助我不断收到此错误

Fatal error in launcher: Unable to create process using '"g:\python\python.exe" "G:\Python\Scripts\django-admin.exe" startproject mysite'

In the future, please link the other solutions that you have tried, and also the error that you are specifically getting.将来,请链接您尝试过的其他解决方案,以及您特别遇到的错误。

If you are doing what I think you're doing, which is running django-admin.py startproject mysite , then this will not work because you are trying to call a file that doesn't exist.如果你正在做我认为你正在做的事情,即运行django-admin.py startproject mysite ,那么这将不起作用,因为你试图调用一个不存在的文件。 If you want to start a Django project you have to run django-admin startproject mysite .如果你想启动一个 Django 项目,你必须运行django-admin startproject mysite Notice how there's no .py after django-admin .注意django-admin之后没有.py You can read more in the Django tutorial site: https://docs.djangoproject.com/en/3.0/intro/tutorial01/ .您可以在 Django 教程站点中阅读更多内容: https : //docs.djangoproject.com/en/3.0/intro/tutorial01/

Theres seems to be a small bug in that your path as 2 quotation marks ('") in '"g:\\python\\python.exe". Since you are a begginer Id say for you to try and unninstall python and install again the newest version availeable at the official website.似乎有一个小错误,因为您的路径为 '"g:\\python\\python.exe" 中的 2 个引号 ('")。由于您是初学者 Id 告诉您尝试卸载 python 并重新安装最新版本可在官方网站获取。

A similar issue for you to look into if it doesnt work: https://github.com/pypa/pip/issues/5223如果它不起作用,您可以查看类似的问题: https : //github.com/pypa/pip/issues/5223

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

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