How to change the default Python interpreter in Sublime text 3 How to change the default Python interpreter in Sublime text 3 python python

How to change the default Python interpreter in Sublime text 3


You can get it working by distinguishing the name of python.

For example change

C:\Python27\python.exe 

to

C:\Python27\python2.exe

Change your environment variables to reference this change. Type python2 in cmd to confirm its working.

And then you should be able to reference this from your build hotkey.

{"path": "/home/username/anaconda/bin","cmd": ["python2", "-u", "$file"],"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)","selector": "source.python"}