'python3' 不是内部或外部命令,也不是可运行的程序或批处理文件 [英] 'python3' is not recognized as an internal or external command, operable program or batch file

查看:1370
本文介绍了'python3' 不是内部或外部命令,也不是可运行的程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 上使用 Python 3.5.2 版本并尝试使用 python3 app.py.我收到此错误消息:

I am using Python 3.5.2 version on Windows 7 and tried using python3 app.py. I am getting this error message:

'python3' is not recognized as an internal or external command,
operable program or batch file. 

是否有任何关于 python3 命令不起作用的具体原因?

Is there any specific cause about why the python3 command is not working?

我还验证了 PATH 已添加到环境变量中.

I also verified that the PATH is added to environment variables.

推荐答案

没有python3.exe文件,这就是它失败的原因.

There is no python3.exe file, that is why it fails.

试试:

py

相反.

py 只是 python.exe 的启动器.如果您的机器上安装了多个 python 版本(2.x、3.x),您可以指定要启动的 python 版本

py is just a launcher for python.exe. If you have more than one python versions installed on your machine (2.x, 3.x) you can specify what version of python to launch by

py -2 或py -3

py -2 or py -3

这篇关于'python3' 不是内部或外部命令,也不是可运行的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆