Python不能仅从带有miniconda安装的cmd/bat文件中识别

Python不能仅从带有miniconda安装的cmd/bat文件中识别,python,windows,cmd,anaconda,miniconda,Python,Windows,Cmd,Anaconda,Miniconda,如果直接从命令行启动,则可以识别python: Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Users\%USER%>conda info --envs # conda environments: # root * C:\Users\%USER%\Miniconda 及 其中包括: python C:\User

如果直接从命令行启动,则可以识别python:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\%USER%>conda info --envs
# conda environments:
#
root                  *  C:\Users\%USER%\Miniconda

其中包括:

python C:\Users\%USER$\PycharmProjects\upload_acct_value\Main.py
然而,当我运行它时,我得到以下错误:

C:\finished projects>python C:\Users\%USER%\PycharmProjects\upload_acct_va
lue\Main.py
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\finished projects>pause
Press any key to continue . . .
其中手动添加了暂停以查看错误

我的路径变量如下所示:

C:\Users\%USER%\Miniconda;C:\Users\%USER%\Miniconda\Scripts;
这对我来说很奇怪,因为cmd/bat应该是我可以直接在命令行中手动执行的任何操作的自动化


有什么想法吗?

你试过ipython吗?@eryksun.py被发送到记事本++,这基于之前的配置是有意义的。@ReblochonMasque现在安装ipy。@eryksun如果解决了问题,我不会将.py发送到np++。Python的安装已经在路径中,这是奇怪的部分。@ReblochonMasque ipython工作。
C:\finished projects>python C:\Users\%USER%\PycharmProjects\upload_acct_va
lue\Main.py
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\finished projects>pause
Press any key to continue . . .
C:\Users\%USER%\Miniconda;C:\Users\%USER%\Miniconda\Scripts;