虚拟环境已激活
(env) PS C:\Users\Utilizador\Documents\FSapp> python .\manage.py runserver
No Python at
'"C:\Users\Utilizador\AppData\Local\Programs\Python\Python312\python.exe'
虚拟环境已停用
PS C:\Users\Utilizador\Documents\FSapp> python .\manage.py runserver
python : The term 'python' 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
+ python .\manage.py runserver
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
当使用“python3 .\manage.py runserver”时,我得到
python3 : The term 'python3' 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
+ python3 .\manage.py runserver
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (python3:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
重要:
这是我的系统变量:
这是我的用户变量:
您使用哪个程序?基本的Python IDE,Pycharm还是Idea?