python - 找不到 Django 'django-admin' 命令。django版本:2.2
问题描述
我正在尝试使用 django-admin 但遗憾的是它无法正常工作,我必须使用python -m django
如何修复它给出的命令行异常:
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 version
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (django-admin:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
解决方案
推荐阅读
- php - 如何在 WooCommerce 捆绑商品功能中使用底层产品永久链接
- ubuntu - 在 64 位机器 (Ubuntu 20.04) 上执行二进制文件时使用不同的 libc (32)
- javascript - Video.js 与 Vue.js (MPEG-DASH) 错误: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED)
- google-cloud-platform - 如何使用 GCP cloudbuild.yaml 自动化 jasmine 单元测试?
- java - ChronicleHashRecoveryFailedException 中的异常:java.lang.UnsatisfiedLinkError:找不到依赖库
- javascript - 如何在Javascript中选择生成的元素
- android - 自 5 月 7 日以来,Google Play 控制台在所有应用中显示不正确的数据
- python - 有多个场景时如何拆分一列(熊猫)
- python - 无法删除类的实例
- r - 简化没有 for 循环的嵌套列表