Answers for "how to run python from command line"

23

execute command in python script

import os

os.system("ma Commande")

#Exemple:

os.system("cd Documents")
Posted by: Guest on June-10-2020
5

python run command

import os
os.system('cmd /k "Your Command Prompt Command"')
Posted by: Guest on June-20-2020
8

python how to run terminal command

#By Uku Loskit

import os
os.system("ls -l")
Posted by: Guest on January-09-2020
2

run python script terminal

python SCRIPTNAME.py
Posted by: Guest on October-04-2021
0

how to run a python package from command line

python -m my_course.filter
Posted by: Guest on November-09-2020
0

Windows 10 running python scripts from cmd

# move to the directory where the script is located and run it like so
cd (path to directory)
python name.py
Posted by: Guest on November-13-2020

Code answers related to "how to run python from command line"

Python Answers by Framework

Browse Popular Code Answers by Language