当我运行“python .\manage.py runserver”时,我得到:“C:\Users\Utilizador\AppData\Local\Programs\Python\Python312\python.exe”没有Python

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

虚拟环境已激活

(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

重要:

  • 我正在使用 django 和 nodejs 构建一个全栈应用程序
  • 我在激活虚拟环境“env”的同时安装了所有软件包。

这是我的系统变量:

Here are my system variables

这是我的用户变量:

Here are my users variables

python python-3.x django python-2.7
1个回答
0
投票

您使用哪个程序?基本的Python IDE,Pycharm还是Idea?

© www.soinside.com 2019 - 2024. All rights reserved.