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.
A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.
If you want to force pip to clear out its download cache and use the specific version you can do by using --no-cache-dir command. If you are using an older version of pip than upgrade it with pip install -U pip. This will help you clear pip cache.
Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process.
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:
-q
means display only the messages with WARNING,ERROR,CRITICAL log levels-qq
means display only the messages with ERROR,CRITICAL log levels-qqq
means display only the messages with CRITICAL log levelThere are 3 logging levels, so -q
can be used up to 3 times to hide these message types:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With