0

Need help installing python on the sublime text on a windows laptop. I am new to this and spent hours online looking but nothing worked.

I tried

tools>build system>new build system and entered

"cmd":["python3","-u","$file"], 

but it does not work, it shows this message

C:\Users\john\AppData\Local\Programs\Python\Python310\python.exe: can't find '__main__' module in ''
[Finished in 12.3s]
                                                            
Faisal Nazik
  • 2,367
  • 4
  • 17
  • 40
john
  • 1
  • 1

1 Answers1

0

Try to go to Tools > Build System and select Python. That should work. You can just do CTRL + B to run the file.

Jobbet
  • 41
  • 3
  • I just tried and this is the message C:\Users\john\AppData\Local\Programs\Python\Python310\python.exe: can't find '__main__' module in '' [Finished in 1.2s] – john Apr 10 '22 at 18:39
  • I think you should reinstall python – Jobbet Apr 12 '22 at 08:08