MAC Install Python3 via Homebrew

1. Install Homebrew, you can see my previous blog, link: HomeBrew installation

2. After Homebrew is installed, install Python3

Search first:

$ brew search python3
 
output:
app-engine-python          micropython                python3
boost-python               python                     wxpython
gst-python                 python-markdown            zpython
Caskroom/cask/awips-python               Caskroom/cask/mysql-connector-python
Caskroom/cask/kk7ds-python-runtime

Install Python3, wait...

$ brew install python3

After the installation is complete, the specific path is: /usr/local/Cellar/python3/3.6.0, you can go to it in finder,

You can link the software to LaunchPad with the following commands. The software can then be launched in LaunchPad.

$ brew linkapps python3

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325617484&siteId=291194637