我正在尝试使用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
发布于 2021-03-12 22:52:45
我在Arch也遇到过同样的问题。修复它的方法是将软件包安装为根sudo pip install django
。
https://stackoverflow.com/questions/64644680
复制相似问题