Since the Macbook pro comes with python version 2.7.10, you need to install the latest version of python, after learning of the mother tool Homebrew!
The method of installation and use Click Homebrew view!
Install python
$ brew install python
Wait until the installation is complete, view the python version
$ python3
Python 3.7.0 (default, Sep 16 2018, 19:30:42)
[Clang 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Installation pip
The system comes pip python is not installed, the installation is as follows:
$ sudo easy_install pip
The latest version of python 3.7.0 is built pip directly View:
$ pip --version
pip 18.0 from /Library/Python/2.7/site-packages/pip-18.0-py2.7.egg/pip (python 2.7)
$ pip3 --version
pip 18.0 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)