i am assuming the problem resembels the below image and the solution
for ubuntu:
go to tools> build system> new build system, then put the below code to that popped up file and save it,put the location of python installation instead of "python3" if you use ubuntu then no need to add the whole path(as it is installed by default)just write as below
{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}
after saving the file now go to tools>build system then python3 will be noticeable and check the box of python3.Now save any file with py extension in sublime containing these two lines of python code to test the version
import sys
and then
print(sys.version)
and run by going tools>build.Hope it will work as it worked for me.thanks
which python?