How to run a python file on Windows?

What am I doing wrong to run python file?
Python is installed this way: C:\Users\User\AppData\Local\Programs\Python\Python38-32
The file which you want to run is here: C:\Users\User\AppData\Local\Programs\Python\Python38-32\projects\hello.py

I go to the directory ...\projects then execute the command: py hello.py and so I tried python hello.py and just hello.py
Actually, I have tried many ways, including saving the file in different directories and the further you run from different directories.
What's wrong?
PS.. python is installed on the computer, and gives the version of Python and pip when you run the respective teams.
April 7th 20 at 15:37
1 answer
April 7th 20 at 15:39
Solution
in response to write-what do you mean "file did not load", so we're not guessing?
well, if no PATH is not involved
C:\Users\User\AppData\Local\Programs\Python\Python38-32\python.exe C:\Users\User\AppData\Local\Programs\Python\Python38-32\projects\hello.py
when in cmd I pass in the directory with the file at C:\....\projects and runs the command py hello.py in response to the following:
cant open file "hello.py" : [Errno 2] No such file or directory

Run the following command: path C:\Users\User\AppData\Local\Programs\Python\Python38-32\python.exe\;C:\Users\User\AppData\Local\Programs\Python\Python38-32\projects\hello.py
Here the logs, not what was not.
I at least understand how to run it, that is the file in the directory Python should lie? or not necessarily? when installing Python, I put the Checkbox on PATH to configure the PATH manually
Please help to understand with the launch! - Uriah22 commented on April 7th 20 at 15:42
@Berry_Stoltenbe, well, damn, run files is digital literacy, how do you live without them XS. I don't know what for team GB, but if you have added to PATH the way to binaries, then from any directory to run python.exe be just python in interactive mode. If zahotite to run the script, then write your python and the path to this script, it can be as otnostelno from the directory in which it was launched, and absolute.
Run the following command: path C:\Users\User\AppData\Local\Programs\Python\Python38-32\python.exe\;C:\Users\User\AppData\Local\Programs\Python\Python38-32\projects\hello.py
Here the logs, not what was not.

and what was that? maybe you have skrit nothing displays - Idella_Simon commented on April 7th 20 at 15:45
@terence_Bergstrom51, I just 2 days ago started to learn Python.
Script printit line
Path I have added only when you install Python .
Python runs, but those are the chevrons , and a file to do not in them but through SMD.
Neither of which does not lead the team, just the same directory could be opened
And py is the team performing as I understand it - py file.py
Python prescribe something when 0 emotions
Please explain how and what to do, as the manual is revised and all in vain, I realized that from any directory to run but there is no fucking reason ( - Uriah22 commented on April 7th 20 at 15:48

Find more questions by tags PythonWindows