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?

Asked By: Doggy

||

Answers:

Use os.system to do that. You use say os.system(“your command”)

Answered By: Yale Y
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.