2016-02-14 145 views
1
[Error 2] The system cannot find the file specified 
[cmd: [u'python', u'-u', u'']] 
[dir: E:\Program Files\JetBrains\PyCharm Community Edition 4.5.4\PyCharm Projects] 
[path: C:\Program Files (x86)\Intel\iCLS Client\;E:\Program Files\Skype\Phone\;C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.5;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\] 
[Finished] 

我得到這個當我嘗試建立任何代碼與崇高的文本2
我說我的Python 3.5的路徑,它仍然來了與此錯誤消息。有人知道爲什麼錯誤2系統找不到指定的文件 - 崇高的文本2

回答

0

看起來好像Python仍然不是環境變量PATH的一部分。

轉到My Computer > Properties > Advanced > Environment Variables並驗證「C:\ python35;」是在PATH的開頭。如果是這樣,請重新啓動Sublime

在Sublime中,用「(ctrl-`)」運行os.getenv("PATH")打開控制檯,看看結果中是否有C:\python35;

相關問題