Prhyme
Prhyme

Reputation: 131

Pip3 version not being updated in WSL

I'm trying to update my pip version in WSL Ubuntu 20.04, I update it using the command:

python3 -m pip install --upgrade pip

It does show that the current pip version is 21.1.2 as shown in the screenshot, but if I do pip3 --version, I get 20.0.2.

Why is it acting like that?

enter image description here

Upvotes: 0

Views: 3374

Answers (1)

Shreyan Avigyan
Shreyan Avigyan

Reputation: 183

I believe there's something different going on around here. Running python3 -m pip just updates the local package (that is only for you) on Linux (or WSL). Run sudo python3 -m pip install --upgrade pip and it'll get updated for everyone and pip3 --version will evaluate to the new version.

Upvotes: 1

Related Questions