2

How can I hide the output of this command as I have installed all the modules?

import pip
pip.main(["install", "pyttsx3"])
pip.main(["install", "SpeechRecognition"])

I want to remove all the output of the above code for my project as it shows a lot of multiple line output.

1 Answer 1

2

You can use the --quiet option according to the documentation:

pip.main(["install", "requests", "--quiet"])
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.