原文链接:http://www.juzicode.com/archives/2157
错误提示:
在cmd窗口输入python,提示“ ‘python’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 ”
D:\juzicode>python
'python' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
错误原因:
1、安装时没有勾选添加path路径,下图是安装时的正确姿势

解决方法:
1、手动添加python安装路径到Path环境变量,假设Python安装路径在D:\Python\Python38\:

2、找到python安装路径,直接在命令行输入D:\Python\Python38\python,回车运行

关注微信公众号:“桔子code”,欢迎后台留言撩我,我会尽我所能为你解惑Python,C等编程知识
