K
K
koralina172022-04-11 16:47:13
Python
koralina17, 2022-04-11 16:47:13

I can't run python file through terminal. What am I doing wrong?

I can't run python file through terminal. What I do: first I write the path to the file cd <file path>, then I write . What I get is just the word “python”. What am I doing wrong? Tell me please!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Elvis, 2022-04-11
@koralina17

First python, then file path
python C:/myscript/main.py

J
Jack444, 2022-04-12
@Jack444

If you write a terminal, then you have Linux) write python3 and not python. Or perhaps you need to connect to the environment, well, I think I figured it out in a day.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question