Skip to content

Instantly share code, notes, and snippets.

@koji
Created May 21, 2017 18:13
Show Gist options
  • Save koji/1035f7faf17479427cf937dd35c41c3d to your computer and use it in GitHub Desktop.
Save koji/1035f7faf17479427cf937dd35c41c3d to your computer and use it in GitHub Desktop.
How to install anaconda on mac

Install pyenv

$ brew update
$ brew upgrade
$ brew install pyenv
$ pyenv --version

Install Anaconda

$ pyenv install -l | grep anaconda
$ pyenv install anaconda3-4.2.0
$ pyenv versions

Activate

$ pyenv global anaconda3-4.2.0
$ conda create --name py python=3.6 anaconda
$ source activate py
$ python --version
$ python2 --version
$ python2
Python 2.7.13 (default, Dec 24 2016, 20:29:00)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
$ python3 --version
Python 3.5.2 :: Anaconda 4.2.0 (x86_64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment