A
A
Alexander Koshelev2020-02-18 10:06:15
Python
Alexander Koshelev, 2020-02-18 10:06:15

How to run python file on windows?

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

I go to the ...\projects directory and then execute the command: py hello.py and so I tried python hello.py and just hello.py
In general, I tried many ways, including saving the file in different directories and further launch from different directories.
What's wrong?
PS .. python is installed on the computer, it gives out both the version of python and pip when you run the corresponding commands.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-02-18
@Xandr24

what in response writes something that means "the file did not work" so that we do not have to guess?
well, if no PATH is involved

C:\Users\User\AppData\Local\Programs\Python\Python38-32\python.exe C:\Users\User\AppData\Local\Programs\Python\Python38-32\projects\hello.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question