Sublime Forum

Sublime text won't print anything


Hi guys,

I started learning python 2 weeks ago - yesterday I was doing my practice questions but all of a sudden, nothing will print. I copy pasted code from the practice book pdf but it still won’t print. I thought hmm weird. So my noob brain decided to delete sublime text (LOL) I redownloaded and I still cant’ print anything - I keep getting this error even when printing hello world. Where did I go wrong? The python book said when downloading sublime text to set up by:

  1. going to Tools > build system > new build system
  2. putting the command below

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

I did this the first time and it went smooth. Now, it seems like i keep getting he error below:

/Library/Frameworks/Python.framework/Versions/3.11/bin/python3: can’t find ‘main’ module in '/Applications/Sublime’
[Finished in 250ms with exit code 1]
[cmd: [‘python3’, ‘-u’, ‘’]]
[dir: /Applications/Sublime]
[path: /Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/]



You need to save the file in order to run it.



thank you!

which file is it looking for?



The file you’re editing.