Sublime Forum

Setting Sublime text with Python 3.8.2

#1

Hi everyone! Can you please help me with this problem? I have downloaded Python 3.8.2 (added to the Path) and then proceeded to download Sublime Text 3.

Before starting, I saved a new file hello_world.py, then I went to Tools>Build System>Python. Unfortunately, after typing print(“hello_world”), when I try to run in the folder I can’t see anything except for [Finished in 3.5s].

I know that I should go to Tools>Build System>New Build System, but basically I have no idea what ti type in since I am a beginner.

Thanks a lot!

0 Likes

#2

You will need Tools -> Build System -> New Build System only when you want to run some kind of external program or want to compile/interpret some language whose build system is not already shipped by Sublime.

As for the failing build :-

  1. Did you save the file before running the build system ?
  2. Are you running the build system from the currently open file ?

Maybe a screenshot (or a GIF) will also help as will any other details you can spare (OS, ST version etc)

1 Like

#3

As a note, the Python.sublime-build file that ships with Sublime contains a variant named Syntax Check. If you pick that variant, all it does it compile your code but not run it. So you may want to use Tools > Build With... while editing a Python file and choose the plain Python build and see if that works better.

1 Like

#4

Guess you meant Setting Sublime text with Python 3.8.2 in the title instead Setting Sublime text with Python 3.2.8, right? :slight_smile:

1 Like

#5

FWIW, did you change the syntax of the file to Python when you saved it?

1 Like

#6

Yes, my bad! Thank you for the correction!

0 Likes

#7

Yeah, I just followed the instruction from the book that I am reading: I created a folder python_work and then, once I opened the editor, I saved the file as hello world.py.

Thank you for your answer!

0 Likes

#8

I tried to do as you said and it worked! Thank you!

0 Likes

#9

Thank you so much for your answer! So, yeah I saved the file before running the build system and then I run it from the open file. I’ll send you the screenshot.

0 Likes