How to run scripts in python without using subprocess module? (I don’t have that module)
Question:
How to run cmd codes like pip install matplotlib
in python?
I tried to use Stash
, but it costs too much time and it cannot be run if I have a UIView
. So, can someone help me?
Answers:
Use os.system
to do that. You use say os.system(“your command”)
How to run cmd codes like pip install matplotlib
in python?
I tried to use Stash
, but it costs too much time and it cannot be run if I have a UIView
. So, can someone help me?
Use os.system
to do that. You use say os.system(“your command”)