How to run the program by command line in Python 3.9

Question:

i have a program and the program script, here is it –

python3.9 Test.py --Start [1,1,1] --End [4,4,4] --Visualize

When I run it in Pycharm terminal, it doesn’t work. Where should i input this command?

I have searched the internet about this topic, but didnt find anything Also chat gpt

Asked By: Maksim Danko

||

Answers:

It should be just python test.py or python3 test.py
You need to be on the exact path of the script.
For example if script is located in c:desktop your terminal needs to be located in c:desktop.

Bash, PowerShell, depends on your OS

Answered By: ResistorsSmoker
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.