Sublime Forum

Python 3.10 with sublime text 4


New to both python 3.10 and sublime text 4. I’m using the python crash course book to begin this journey. I have installed python 3.10 and sublime text 4 on windows 10. I can’t get it to print hello World. I see this topic on the forum for earlier versions of python and sublime text but not for the versions I’m using. Is there going to a difference. Any type of advice will help. Thank you all.

“cmd”: [“python3”, “-u”, “$file”],



Nothing has changed in either Python not Sublime Text for the previous topics to not apply.



On windows you should be using py to execute your script, not python3.

Generally speaking, unless you’re installing Python in some really esoteric way, the Python build system that ships with Sublime Text 4 should be sufficient to execute newer versions of Python on all OS’s now by default and no longer requires custom tweaking.

You may find this useful:



Appreciate it. I will give a look. Thank you.



Gave it a shot. It didn’t work. From what I’m reading the display command is the issue. Cntrl-b let’s me know how fast it finished but no ‘hello python world’. I also used the info from the attached video. I will continue to gather more information and hopefully something will work.



If your code doesn’t fail but also doesn’t provide any output, the most common reason is people using to working in a Python REPL where entering 2 + 2 automatically prints 4. When executing a Python script as you would from a standard build system, this calculates the value and then throws it away because there is no print() that tells it to display the result.