'What does the `-qq` mean as a pip install option?
I saw this on a jupyter notebook:
!pip install -Uqq fastbook
! runs commands on shell. U stands for upgrade. What do the options qq mean? q stands for quiet.
Why are there two q's?
Looked up pip install --help.
Looked up User guide to no avail.
Solution 1:[1]
The option -q of pip give less output.
The Option is additive. In other words, you can use it up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).
So:
-qmeans display only the messages with WARNING,ERROR,CRITICAL log levels-qqmeans display only the messages with ERROR,CRITICAL log levels-qqqmeans display only the messages with CRITICAL log level
Solution 2:[2]
There are 3 logging levels, so -q can be used up to 3 times to hide these message types:
- Warning
- Error
- Critical
This type of option is called "additive," meaning you can apply it more than once to tune the app settings.
So you can use -q to suppress various levels of debug output:
-q: hide WARNING messages
-qq: hide WARNING and ERROR messages
-qqq: hide all messages
FYI the option -v is also additive and can be used up to 3 times.
More information available at the pip reference
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Adonis Gaitatzis |
