Install Python3 by installing homebrew

Source: Internet
Author: User

First of all, what is homebrew?

The following is a brief book on the explanation of a blog: (blog link: http://www.jianshu.com/p/d229ac7fe77d)

Why to use homebrew

Mac OS x is UNIX-based, and it can use great open source tools on many Linux platforms, such as wget, such as Dos2unix scripting tools.
However, the OS X system itself lacks the Linux package manager. For example, the Fedora Yum and DNF, such as Ubuntu Apt-get, such as ArchLinux Pacman.
So these excellent open source software installed on the Mac can only be done by downloading the source code, compiling, installing, configuring the environment variable steps to complete the installation. For most of the software, the installation process requires a lot of dependent libraries, manually to solve these dependent libraries is a very painful thing. This is what the Package Manager does: Resolve dependencies in the software installation process.
There is an open source project called Homebrew, which perfectly solves the embarrassment of having no package Manager on Mac OS X.

Baidu Homebrew can find the following two links:

Homebrew-the missing Package Manager for MacOS Homebrew-macos Essential Suite Manager

Click on the link will jump to Homebrew's official website,

Open the Terminal window and enter the following command

/usr/bin/ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

To successfully install the homebrew.

Maybe until now you don't know exactly what the homebrew is for, so let's use it to install Python, because my Mac OS system is 10.12, so I'm going to install the Python version of 3.X.

Enter the following command at the terminal:

Brew Install Python3

You can easily install Python and prompt after installation is complete.

The main idea is: Python installation is complete, the specific path is:/usr/local/cellar/python3/3.6.0, you can go in the Finder,

The software is linked to the launchpad by the following command, which is the application.

Try it:

Brew Linkapps Python3

Prompt after completion:

Another look launchpad two more apps,

Install Python3 by installing homebrew

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.