gatorback
gatorback

Reputation: 1537

How to determine if OSX pip3 version is current?

pip3 -V

returns

pip 19.3.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

UPDATES

Per StonksMan9000:

pip install --upgrade pip

returned: pip: command not found.

This nudged me to try:

pip3 install --upgrade pip

returned: Requirement already up-to-date: pip in /usr/local/lib/python3.7/site-packages (19.3.1)

Upvotes: 0

Views: 824

Answers (2)

gatorback
gatorback

Reputation: 1537

Upgrade will return 'up-to-date' if current:

pip3 install --upgrade pip

returned:

`Requirement already up-to-date`: pip in /usr/local/lib/python3.7/site-packages (19.3.1)

In all likeliness this is the same on Ubuntu and other distros.

Upvotes: 0

StonksMan9000
StonksMan9000

Reputation: 311

If you're looking for the latest version, you can directly do this -

pip install --upgrade pip

This will upgrade pip to the latest version. To check which version is the latest one, I recommend installing Yolk. It can be used to check available versions for other packages as well, and is probably a better overall solution. Refer this question for more info.

Upvotes: 1

Related Questions