我已经在我的计算机上安装了django,但是当我试图在我的终端上运行任何django-admin
命令时,我会得到以下错误:
django-admin : The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ django-admin startproject app
+ CategoryInfo : ObjectNotFound: (django-admin:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我正在使用powershell和visual studio代码。
有什么办法能解决这个问题吗?
发布于 2021-05-07 08:31:17
Django是一个广泛使用的框架,它可以安装在多个体系结构和操作系统上,现在,了解了这个前提,假设您在计算机前面试图回答您正在问的问题。
对于一些合作者来说,如果没有更多的细节,就很难或者不可能重现正在呈现给您的错误,我的建议是重新表述这个问题,例如:
H 19>我安装了django语句.H 210H 111我试图用这个指令创建我的项目…H 212H 113我得到以下错误消息:H 214
顺便说一下,我从我的PyCharm IDE中执行的所有指令……
我建议您阅读下面的手册
http://www.catb.org/~esr/faqs/smart-questions.html
我希望这能对你有所帮助,这样你就能提供更多的信息,从而得到一个正确的答案。
https://stackoverflow.com/questions/67438393
复制相似问题