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:
- going to Tools > build system > new build system
- 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 Text.app/Contents/MacOS’
[Finished in 250ms with exit code 1]
[cmd: [‘python3’, ‘-u’, ‘’]]
[dir: /Applications/Sublime Text.app/Contents/MacOS]
[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/Postgres.app/Contents/Versions/latest/bin]