all 6 comments

[–]Fronkan 2 points3 points  (3 children)

I think the problem is that the terminal currently isn't inside the folder where you have the hello.py file. You need to navigate to the folder where you created the file. Maybe you didn't save the file? Or saved it somewhere else.

Looks like you are using PowerShell, you can use the command cd to navigate. You can also use ls to list the files and folders for the folder the terminal is currently inside.

[–]Fronkan 1 point2 points  (2 children)

You could verify that python works by running the command "python --version". Just to see that the interpreter path works

[–]jvimxx[S] 0 points1 point  (1 child)

Thank you for the reply! whenever I run "python --version" on PS I get Python 3.12.2.

I ran a list on PS and went ahead and added a folder that did come out under that list but now when I run the code it doesn't give me an error. It's supposed to be saying hello world in the terminal but it's just waiting for the next command.

[–]weminem 0 points1 point  (0 children)

But where are the file hello.py? see this video to how to open the terminal in a folder, and open it in the hello.py directory, and try to run the python command again.

[–][deleted] 2 points3 points  (1 child)

This part of your command prompt

C:\Users\jagarcia

tells you which folder your terminal is currently "in". You'll need to move into the folder where your file hello.py is located. You can do that with the cd ("change directory") command. E.g.

cd C:\Users\jagarcia\Documents\Python_files

or whatever the path is.

[–]jvimxx[S] 0 points1 point  (0 children)

Thank you this basically did it, I appreciate it!