1/ View the current Python version for MAC
So let's say python and this is the MAC version of PythonCopy the code
Type exit() to exit PythonCopy the code
Install python3. X
1. Check whether PYTHon3 is installed
Python3 returns: Commend not found Python3 is not installed. If python3.x.x is returned, Python is already installedCopy the code
2. Two ways to install PYTHon3
Brew install python3 a single line of command will do, but it will install the latest version of python3. Currently python3.7 is installed on the MAC, and some feature modules are not supported in the latest version. Method 2: website under specified in the python3 version installed download address: https://www.python.org/downloads/release/python-367/ can be installed in accordance with the process, will be the default configuration python3 environment.Copy the code
3. Check whether the installation is successful
Python3 has been installed successfullyCopy the code
4. View the python3 installation position
The terminal type which python3Copy the code