当我尝试运行
django-admin
命令时,它失败并出现以下错误。
$ django-admin startproject pyshop
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 pyshop
我该怎么做才能让它发挥作用?
您需要先通过
pip install django
下载django,或者如果您使用的是anaconda提示符,则可以通过conda install django
安装它