Sublime Forum

Installation problems

#1

C:\Users\Dimitri\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe: can’t find ‘main’ module in ‘’
[Finished in 382ms]

For some reason Python cannot find the _main_module . I have reinstalled sublime several times. Deleted cache re-entered licence no go.
Please help, going mad

0 Likes

#2

It’s likely the case that you haven’t saved the file you’re trying to run.

1 Like

#3

It worked thank you, why does the text no highlight when typing for commands etc.
Thank you again, such a simple think has bothered me for two days.

0 Likes

#4

Like you haven’t set the syntax ST should use to highlight your code. Note that ST uses the file extension to guess what syntax you’re using.

1 Like

#5

Thank you again, the highlighting I managed to get it right each time I open a new file each time,is there a way to set it permanently, I am learning python now and really only need it for that, Thank you

0 Likes

#6

You save your files with a .py file extension.

1 Like

#7

Thank you, I thought I had to find a setting global, yet it was so simple. Thank you for your help.

0 Likes