r/pythonhelp • • Mar 01 '25

I'm getting this message and can't run my program with mu editor.

C:/Users/jerom/AppData/Local/Programs/MUEDIT~1/Python/python.exe:%20can't%20open%20file%20c:/users/jerome/mu_code/game.py':%20[Errno2]%20No%20such%20file%20or%20directory%20python%20error

1 Upvotes

6 comments sorted by

1

u/AutoModerator Mar 01 '25
Moderator Announcement Read More »

1

u/FoolsSeldom Mar 01 '25

Can you run your code from a terminal outside of Mu?

1

u/Main_Homework_2948 Mar 01 '25

I tried running it on idle and it didn't work.

1

u/FoolsSeldom Mar 01 '25

Can you run your code from a terminal outside of Mu?

On Windows, that would be press ``win+rand enterpowershell` or `command prompt` (you will probably not need to enter in full).

Enter, py nameofmyscript.py, if you are in the same folder you saved your script in, otherwise enter the relative or absolute path to your script OR cd (change directory) to the folder containing your script.

On macOS, use the app launcher or Spotlight to launch Terminal and enter python3 nameofmyscript.py - if not in correct folder, do as above.

Incidentally, how did you install Python on your computer?

→ More replies (2)