How could I set python version on sublime? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How could I set python version on sublime?

I have python 2 and python 3 on my laptop.. how can I change sublime from using python 2 to python 3?

6th Aug 2018, 8:09 PM
Nahi Bul
Nahi Bul - avatar
3 Answers
+ 2
I searched, maybe it's useful for you : Found this on Google. Create the file ~/.config/sublime-text-2/Packages/Python/Python3.sublime-build: { "cmd": ["python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } You should then be able to choose the Python3 build system. If that doesn't work, try this: { "cmd": ["python3", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", "encoding": "utf8", "path": "/Library/Frameworks/Python.framework/Versions/3.3/bin/" }
6th Aug 2018, 8:31 PM
Victory
Victory - avatar
+ 2
I hope others can help you, you're welcome.
6th Aug 2018, 8:39 PM
Victory
Victory - avatar
+ 1
I searched too.. and this is a little scary 😅 I couldn't understand it well.. anyway, thanks for your effort :)
6th Aug 2018, 8:34 PM
Nahi Bul
Nahi Bul - avatar