mac mounted python3

Ready to upload a mac python3 Let's look at how to install

Open dos window I use iterm2, open window

Online that you need to install xcode (installing a compiler is a matter the amount, generally do ios development)

homebrew bit like a composer, a download oh, download command is:

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

 

 

Bahrain look to see if the installation was successful run  

brew doctor

 

 

If prompted Your system is ready to brew on behalf of success

 

View python version, because the mac system generally comes with python 2.x my own 2.7

I want to see their own versions of words input python --version

 

Then we use homebrew download Search python

 

brew search python

 

 

If the return result, we execute the command to install

brew install python

 

Other finished dress get away, and then view the installation position of the input path or echo $ PATH view on it, so that the mac python3.x environment to Bahrain.

Guess you like

Origin www.cnblogs.com/HoverM/p/11237078.html