如何让Sublime 2与Python 2.7一起使用

时间:2013-04-20 08:49:59

标签: python ide sublimetext2

对不起,我不明白如何在我的机器上获得与python交互的崇高。任何人都可以帮忙。

我执行ctrl-B时得到的错误如下:

  

[错误2]系统找不到指定的文件[cmd:[u'python',   u'-u',u'C:\ Users \ User \ AppData \ Roaming \ Sublime Text   2 \ Packages \ User \ Default(Windows).sublime-keymap']] [目录:   C:\ Users \ User \ AppData \ Roaming \ Sublime Text 2 \ Packages \ User] [路径:   C:\ Program Files \ Common Files \ Microsoft Shared \ Windows Live; C:\ Program   文件(x86)\ Common Files \ Microsoft Shared \ Windows   生活; C:\ WINDOWS \ SYSTEM32; C:\ WINDOWS; C:\ WINDOWS \ SYSTEM32 \ WBEM; C:\ WINDOWS \ SYSTEM32 \ WindowsPowerShell \ V1.0 \; C:\ PROGRAM   Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common   Files \ Intel \ WirelessCommon \; C:\ Program Files(x86)\ Windows   Live \ Shared; c:\ Program Files(x86)\ Common Files \ Roxio   共享\ DLLShared \; c:\ Program Files(x86)\ Common Files \ Roxio   Shared \ 10.0 \ DLLShared \; c:\ Program Files \ WIDCOMM \ Bluetooth   软件\; c:\ Program Files \ WIDCOMM \ Bluetooth   Software \ syswow64; C:\ Program Files \ Samsung \ AllShare Framework   DMS \ 1.3.06 \; C:\ Program Files \ Samsung \ AllShare Framework   DMS \ 1.3.06 \ 64bit \; C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program   Files \ Common Files \ Intel \ WirelessCommon] [已完成]

1 个答案:

答案 0 :(得分:4)

我认为你应该在环境变量中添加C:\Python27PATH变量,否则cmdsublimetext将无法识别python命令。

相关视频: Adding Python to DOS Path

请注意,sublimetext2不支持STDIN的输入,因此可能需要切换到其他IDE。