3

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

pip install -U scikit-learn
dessert
  • 39,982
SRJ577
  • 105

1 Answers1

3

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?

dessert
  • 39,982