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
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
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
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