如何将 Django 添加到路径

问题描述 投票:0回答:1

当我尝试运行

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

我该怎么做才能让它发挥作用?

python django cmd
1个回答
0
投票

您需要先通过

pip install django
下载django,或者如果您使用的是anaconda提示符,则可以通过
conda install django

安装它
© www.soinside.com 2019 - 2024. All rights reserved.