Reputation: 329
I've had to install Python packages and libraries using pip, but every time I do, it says I'm using an older version of pip, and that v18.1 is available by running the command
python -m pip install --upgrade pip
When I run this command, it just says the same thing. It apparently can't update itself because it's outdated. Is there any way to get around this, maybe by manually updating it?
Thanks in advance, community!
Update: The OS I'm using is currently Windows 10 and Python 3.6.4. The following screenshot is what outputs when running the command.
Upvotes: 18
Views: 83517
Reputation: 11603
On OS X this worked for me
python -m pip install --upgrade pip
Upvotes: 2
Reputation: 69
Try with "python -m pip install --upgrade pip --user" It worked with me and I am with Win10.
Upvotes: 5
Reputation: 990
If you are on linux try this -
sudo su root
apt-get purge -y python-pip
wget https://bootstrap.pypa.io/get-pip.py
python ./get-pip.py
apt-get install python-pip
or
sudo -H pip3 install --upgrade pip
sudo -H pip2 install --upgrade pip
Upvotes: 3
Reputation: 8579
Upgrading pip
On Linux or macOS:
pip install -U pip
On Windows:
python -m pip install -U pip
Upvotes: 33