What is the use of -U in the pip install command?

What is the use of -U in this install command?

pip install -U scikit-learn

1 Answer

This option upgrades all packages. From man pip/INSTALL OPTIONS:

-U, --upgrade Upgrade all packages to the newest available version. This process is recursive regardless of whether a dependency is already satisfied.

You might be interested in this Q&A: How can I get help on terminal commands?

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like