When I try to run python or any language through Sublime Text 2, all it says is
[Error 2] The system cannot find the file specified
[cmd: [u\'python\', u\'-
After installing python from the following link http://www.python.org/download/releases/, you must Update your environment variables:
Make sure you restart sublime after doing this, you will still get an error if you didn't.
The problem is related to the python command not being found in the exectuable path. You could point sublime explicitly to the python executable, or you could just fix the env path. The second is more important to have your general python set up properly.
C:\Python27\;C:\Python27\Scripts\
The first location contains python.exe and the second contains a "python" script that points back to the exe. This will allow a command using "python" to work.
The path is a list of directories, not files. You should add c:\Python27
to your path, not c:\Python27\python
.