' django-admin帮助'发射器的致命错误:无法创建过程
当我尝试运行“ django-admin帮助”或VSCODE终端中的任何其他Django-Admin命令(在Virtualenv中)时,它给我以下错误:
启动器中的致命错误: '“ f:\ devops \ django \ btre_project \ venv \ scripts \ python.exe”“ f:\ django \ btre_project \ venv \ venv \ vinv \ cripcts \ django-admin.exe” help' Strong>
整个Django项目首先位于f:\ devOps中,但后来我将Django文件夹移到了f:\ devOps之外,因此现在位于当前“ f:\ django”的位置。
虚拟环境可以完美地激活和停用,并且如果我使用“ Python Manage.py Runserver”启动服务器,则服务器正在启动并运行。但是,每当我尝试运行Django命令时,它都会给我上述错误。
另外,在安装了django项目的虚拟环境中,我还尝试使用PIP重新安装Django在Virtualenv中,但没有解决,但我会遇到相同的错误。
任何帮助将不胜感激,谢谢。
When I try to run "django-admin help" or any other django-admin command in the vscode terminal (within the virtualenv) it gives me the following error :
Fatal error in launcher: Unable to create process using '"F:\DevOps\Django\btre_project\venv\Scripts\python.exe" "F:\Django\btre_project\venv\Scripts\django-admin.exe" help': The system cannot find the file specified.
The whole Django project was located in F:\DevOps first but then I moved the Django folder outside the F:\DevOps so it's now at this location currently "F:\Django".
Virtual environment can be activated and deactivated perfectly and also if I start the server with "python manage.py runserver" The server is up and running. But whenever I try to run the django command it gives me the above error.
Also, in the virtual environment of project django is installed and I also tried reinstalling the django in the virtualenv with pip but nothing worked out and I get the same error.
Any help would be appreciated, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
处理此问题的最简单方法是创建一个新的虚拟环境,
pip install django
在该环境中,它将解决此特定问题。PS:然后在此新虚拟环境上而不是旧的
manage.py
服务器上运行!The easiest way to handle this is to create a new virtual environment,
pip install django
in that environment and it will resolve this specific issue.PS: Then run your
manage.py
server on this new virtual environment instead of the old one!