1.首先得使用vpn(这个是必须条件)
2.下载:anaconda
下载网址:https://www.continuum.io/downloads#osx
我选的:COMMAND-LINE INSTALLER (375M)
下载完:Anaconda2-4.4.0-MacOSX-x86_64.sh
打开终端:进入Anaconda2-4.4.0-MacOSX-x86_64.sh所在目录
$ chmod 777 ./Anaconda2-4.4.0-MacOSX-x86_64.sh //给执行的脚本添加执行权限
Do you approve the license terms? [yes|no]
>>> yes
Anaconda2 will now be installed into this location:
/Users/mac/anaconda2
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/Users/mac/anaconda2] >>> /Users/mac/Desktop/工具/anaconda2
这里执行报错,最后会报不支持中文路径,改成如下,在执行:
[/Users/mac/anaconda2] >>> /Users/mac/Desktop/Tool/anaconda2
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
....
A Python library which exposes cryptographic recipes and primitives.
Do you approve the license terms? [yes|no]
>>>
>>> yes
installation finished.
Do you wish the installer to prepend the Anaconda2 install location
to PATH in your /Users/mac/.bash_profile ? [yes|no]
[yes] >>> yes
Prepending PATH=/Users/mac/Desktop/Tool/anaconda2/bin to PATH in /Users/mac/.bash_profile
A backup will be made to: /Users/mac/.bash_profile-anaconda2.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda2!
Share your notebooks and packages on Anaconda Cloud!
Sign up for free: https://anaconda.org