2014-02-05 68 views
2

我試圖用ctrl + B在Windows 8上運行我的代碼,但它給出了以下錯誤。如何在崇高的文本3上運行python代碼?

'python' is not recognized as an internal or external command, 
operable program or batch file. 
[Finished in 0.1s with exit code 1] 
[shell_cmd: python -u "C:\Users\vishal_pc\Documents\python_codes\helloworld.py"] 
[dir: C:\Users\vishal_pc\Documents\python_codes] 
[path: c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;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\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft\Web Platform Installer\] 

有些身體請幫忙! 謝謝。

+2

您是否安裝了Python? –

+0

是的,我已經在我的系統中安裝了python3.3。 – user3275284

+0

它可能已安裝,但它的安裝目錄(python.exe所在位置)似乎不在PATH中。 – sphere

回答

4

它看起來像您的路徑設置不正確。有時會發生這種情況,當你在特定的文件夾而不是默認的C:\ Python文件夾中安裝Python時(例如C:\ Python27)

要設置PATH,右鍵單擊'我的電腦'並單擊'屬性',然後在「系統屬性」中單擊「高級」選項卡。在「系統變量」部分,您會看到一個名爲「路徑」的變量。現在將Python的安裝位置添加到該列表中(其他項目以分號附加)。例如,如果您安裝在C:\ Program Files \ Python27上,那麼您會將「; C:\ Program Files \ Python27」添加到您的PATH變量中。