I tried to put Python 3.6.1 on my Mac to try deep learning for a while, so I posted a memorandum.
First of all, the environment looks like this. ・ Terminal: MacBook Pro (Late 2012) ← I want a new one soon! ・ OS: OS X EL Capitan
On a Mac, Python is installed from the beginning. In my environment
% python --version
Python 2.7.10
So, after investigating various things, it is said that Python uses 3 series instead of 2 series in deep learning. When I investigated further, there was a way to install it with brew, but I wanted to keep the existing 2 system environment, so this time I brought it directly from the main page. By the way, there is also an Anaconda distribution, Since the size is large and the contents are not clear, I will put only Python in order to go with the minimum configuration for the time being.
https://www.python.org/downloads/
So, click "Download Python 3.6.1 (as of April 23, 2017)". If you download and install the package directly on your Mac, I found an executable binary (python3) of python 3.6.1.
% python3 --version
Python 3.6.1
% which python3
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
He politely described the environment variables of PATH in the configuration file of the shell I am using.
# Setting PATH for Python 3.6
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
Now the environment for getting started with deep learning is ready. I'll try DL!
Recommended Posts