问题遇到的现象和发生背景 初次学习Python语言,下载Python和Sublime Text 后,试图运行程序“Hello Python world”,但出现了报错,下载Python后已选择了“Add Python 3.10.2 to Path”。后输入了如下代码行:
print(“Hello Python world!”)
运行失败,出现了报错,报错代码如下:
[WinError 2] 系统找不到指定的文件。
[cmd: ['pythn3', '-u', 'E:\python_work\hello_world.py']]
[dir: E:\python_work]
[path: C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\WINDOWS\System32\OpenSSH;E:\Python\Scripts;E:\Python;C:\Users\Reddy Yao\AppData\Local\Programs\Python\Launcher;C:\Users\Reddy Yao\AppData\Local\Microsoft\WindowsApps;]
[Finished]