Mac OSX: 10.11.3 Python: 2.7.10(System) Pyenv: 20160202 Anaconda: 3-2.4.1 * Latest version as of March 27, 2016 Python: 3.5.1(Anaconda)
brew install pyenv
Add the following.
~/.bash_profile
export PATH="$HOME/.pyenv/shims:$PATH"
Check the Anaconda version that can be installed with the following command
pyenv install --list | grep anaconda
Then install the specified version with the following command
pyenv install anaconda3-2.4.1
To install the package, use pip in Anaconda. Note that if you execute the pip command without specifying Anaconda's pip, you will not be able to use it because Python, which is used as standard, will be called and installed (unverified).
~/.pyenv/versions/anaconda3-2.4.1/bin/pip install [package name]
e.g.
~/.pyenv/versions/anaconda3-2.4.1/bin/pip install pulp
~/.pyenv/versions/anaconda3-2.4.1/bin/pip install ortoolpy
When you install Anaconda, a shortcut will be created on your desktop, so double-clicking it will bring up the Anaconda launcher screen.
~/.pyenv/versions/anaconda3-2.4.1/Launcher.app
You can launch Spyder (IDE) by clicking "Launch" to the right of spyder on the Anaconda launcher screen.
I am very grateful that the environment for data analysis can be constructed so easily. In the future, I would like to use it for data collection, processing, analysis, optimization, etc. I would like to post those articles as well.
Recommended Posts