Upgrading Python pip uninstalls old version but doesn’t install the new one

0

1

After installing some new packages using Python's pip, I received a message saying that I should consider upgrading its version:

You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

I did it typing the command:

pip install --upgrade pip

But the computer seemed to have uninstalled the old version of pip (18.1) and not installed the new one (19.0.1).

I have installed winpython again in my portable device and also the packages of my interest, but I don't know how I can upgrade pip without having the same problem again.

At the time that I tried to upgrade pip and it failed, I had gotten a message that maybe it was a user permission problem. But I don't know how I can check whether it is the problem, and I don't understand why this may be a problem since the installation of other packages was just fine.

DOS

Posted 2019-01-30T13:07:45.247

Reputation: 1

Answers

0

I ran into this kind of mess myself on Windows. Try this:

First figure out the location for the Python pip current folder in explorer, copy it.

Then hit the “Start” button and type cmd then in cmd type cd and then paste the location you found and hit Enter.

Then it'll change the directory to that path, and then type:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

And hit Enter

Then type:

python get-pip.py

Or:

python -m pip install -U pip

It will then show the info of what’s happening.

And then it’ll install the new version if current version is old and that’s it.

Shady

Posted 2019-01-30T13:07:45.247

Reputation: 1