Sublime Forum

Run by python3

#1

Hi, I’m looking for a way to run my python codes in sublime text. in windows when i pressed CTRL + B for the firs time, i could choose to run via python 2 or 3. but when i tried it in Ubuntu, it didn’t happen. how can i choose to run via only python3?

0 Likes

#2

You might want to look into installing sublimelinter and then installing a specific python sublime linter on top of it. You should be able to install both from package manager. However, if that doesn’t work, and also to read about, here are the github pages for sublimelinter and the specific python linter. It would most likely take some work, but you can set it up to always do python 3. Hope this helps! :slight_smile:

https://github.com/SublimeLinter/SublimeLinter3 (sublime linter)
https://github.com/SublimeLinter/SublimeLinter-pylint (python sublime linter)

Also, here is the official sublimelinter documentation.

http://sublimelinter.readthedocs.io/en/latest/installation.html

1 Like

#3

Tanks for your answer.
but there is a problem. I Installed theme but when I’m pressing CTRL + B, there is nothing. no result. what is wrong?

0 Likes

#4

sublimelinter works when you save a file. So just press save on the file menu, or CTRL + s to save your file.

0 Likes