Pip3 Install upgrade problem in Python on Mac
Pip3 install failed to upgrade the module when it was downloaded.
When using A Mac, python2.7 comes with it, but python3 is too old to be called obsolete, so I upgraded to 3.6. I had no problem downloading a module using PIp3 install, but suddenly, a week ago when I found install, I was told that pip3 version was too low and needed to be upgraded. PIP install (updrage) PIP install (updrage) PIP install (updrage) PIP install (updrage) PIP
First of all,
This is because the version of PIP3 is too low, this time according to the prompt upgrade piP3 will still prompt upgrade, is an infinite loop;
A simple solution
First python’s official website to download the latest version (at this point is 3.7), after the download is complete, the next step, the next step, in the/Library/Frameworks/python framework/Versions found multiple python version below, 1. Open ~/.bash_profile/vim.bash_profile
2, modify the file content (the version number is changed to the latest version) PATH = “/ Library/Frameworks/Python framework Versions / 3.7 / bin: ${PATH}” the export PATH at this time in python3 terminal inputs Python 3.7 will be entered, and 2.7 will be entered if you type Python
Python 3.7.0 (v3.7.0:1bf9CC5093, Jun 26 2018, 23:26:24) Python 3.7.0 (v3.7.0:1bf9CC5093, Jun 26 2018, 23:26:24)
[Clang 6.0 (clang-600.0.57)] on darwin Type “help”, “copyright”, “credits” or “license” for more information.
3, alias python = “/ Library/Frameworks/python framework Versions / 3.7 / bin/python3.7” in the export PATH next line copy this section in, exit
Source. bash_profile The third step is used to point Python to 3.7
Pip3 install –upgrade PIP pip3 install –upgrade PIP Pip3 install –upgrade PIP; pip3 install –upgrade PIP; Made two upgrades to the latest version;