Install Python on Mac, installpython
1. download the latest version of Python 3.X from the official website and install it. Because Python 2.7 is already integrated in Mac OS X EI Capitan by default, you need to enter Python3 in Terminal to check whether the installation is successful, python 2.7 is called by default using the Python command.
2. install pip; download the get-pip.py file from the official website page (do not care about the Page Based on the python version to determine whether you have installed, directly enter the command pip in Terminal, if not, it turns out there is no installation), then enter into the get-pip.py directory, use the python command to install pip: python get-pip.py
Enter pip to test the installation.
3. Note that python 3 uses the python 3. X environment and pip3 uses the python3.X environment, for example:
Therefore, when installing some packages, You need to identify whether it is pip or pip3. Otherwise, an error occurs. For example, if pip install aiohttp fails, but pip3 install aiohttp succeeds;