python - 如何将 Django 添加到路径
问题描述
当我尝试运行该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 djnago 下载 django,或者如果您使用 anaconda 提示符,则可以通过以下方式安装它conda install djnago
推荐阅读
- azure-application-insights - ApplicationInsights.config 是否需要位于输出目录的根目录中
- node.js - 等待 node.js/express 中的 Google Vision OCR 承诺并返回
- sas - 获取两个特定字符位置之间的字符串
- python - 如何使用 python 格式化我的 json
- android - 在Android中对齐两个视图的垂直中心
- localization - 通过 Typoscript 将翻译添加到 TYPO3 扩展
- asp.net - 使用 ng-include 时 MVC 路由不起作用
- python - Keras 的回调 evaluate_generator
- c++ - 没有堆的两种方式构造对象
- php - 与服务相关的活动正确显示