I couldn't get out after upgrading pip

The beginning of the matter

Something goes wrong with updating numpy. While searching for the cause, I faced a scene that seems to be caused by an old version of pip. So update as it is written.

pip install --upgrade pip

I feel relieved with this, and when I try again

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\Scripts\pip-script.py", line 10, in <module>
    sys.exit(main())
TypeError: 'module' object is not callable

Apparently, the versions aren't compatible this time? Seems to be the cause. Then I can't uninstall pip with the same error When I'm looking up again

python -m pip uninstall pip

This completes the uninstallation. but

How do I install pip ...?

An amateur has come out. However, if you give up here, you will not be able to do anything anymore. I honestly asked the Google teacher. Then, I arrived at such a site from stackoverflow (the poster seems to have been looking for a way to insert pip).

** * Please do the following at your own risk. I was successful. ** ** How to Install PIP on Windows https://www.liquidweb.com/kb/install-pip-windows/ Is LiquidWeb, the reference company, a fairly well-known company that provides web hosting services? Because it seems I will trust and use the procedure. How about that as an engineer ... I think, but I don't want to sacrifice any more time. get-pip.py I saved the reference as a file and ran it from the prompt.

python get-pip.py

Then

Collecting pip
  Downloading https://files.pythonhosted.org/packages/57/36/67f809c135c17ec9b8276466cc57f35b98c240f55c780689ea29fa32f512/pip-20.0.1-py2.py3-none-any.whl (1.5MB)
     |████████████████████████████████| 1.5MB 1.6MB/s
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-20.0.1

Successful! The update of numpy after that also worked for some reason, and it was solved for the time being. .. ..

Impressions

Errors due to module version are annoying I wish it could be updated automatically. It was a bad sentence, but thank you for reading.

Recommended Posts

I couldn't get out after upgrading pip
When I try to upgrade pip, I get an infinite loop after failing to upgrade
After updating to Catalina, I couldn't use anaconda anymore ...
I have libncurses but get angry with pip install readline
When I try to run the pip command after updating pip, I get "No such file or directory"