Separately install a version of Python that is not pre-installed on your Mac

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

Separately install a version of Python that is not pre-installed on your Mac
Create a python environment on your Mac
Build a Python development environment on your Mac
Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Steps to install the latest Python on your Mac
Build a Python environment on your Mac using pyenv
Install pygame on python3.4 on mac
Install numba on your Mac
Handling of python on mac
Python list is not a list
Install pandas 0.14 on python3.4 [on Mac]
Install Django on your Mac
Is your dll a dll that can take advantage of multi-core?
Install the latest version of Git on your Linux server
Building a Python environment on Mac
Install xgboost (python version) on Windows
Create a Python environment on Mac (2017/4)
Install python3 on Mac (El Capitan)
Environment construction of python3.8 on mac
Steps to install python3 on mac
The story that the version of python 3.7.7 was not adapted to Heroku
Build a Python environment on your Mac with Anaconda and PyCharm
A python script that deletes ._DS_Store and ._ * files created on Mac
I did a lot of research on how Python is executed
Introducing a library that was not included in pip on Python / Windows
[python] [meta] Is the type of python a type?
Install anaconda on a new Mac anyway
A python script for Mac that zips without garbled characters on Windows
It seems that the version of pyflakes is not the latest when flake8 is installed
About the problem that the python version of Google App Engine does not mesh
A memo of a tutorial on running python on heroku
[2020 version] How to install Python3 on AWS EC2
Build a Python environment on Mac (Mountain Lion)
A note about the python version of python virtualenv
Install ZIP version Python and pip on Windows 10
python on mac
When import tkinter is not possible on Mac OS X 10.11.3 (El Capitan) + pyenv + Python 3.5.1.
A story that got stuck when trying to upgrade the Python version on GCE
There is a pattern that the program did not stop when using Python threading
[python] When pipenv install of WSL, python on Windows side is called for some reason
[Python] A program that counts the number of valleys
Install the latest version of CMake on Ubuntu 18.04.4 LTS
Install Python3 on Mac and build environment [Definitive Edition]
Install Python venv --VSCode --GitHub integration environment on Mac
Set up a simple local server on your Mac
Install selenium on Mac and try it with python
Python that merges a lot of excel into one excel
Basics of Python learning ~ What is a string literal? ~
python> check NoneType or not> if a == None:> if a is None:
problem that certificate verify failed on mac python pip
Install pyenv on Raspberry Pi and version control Python
Install Python environment on local PC (pyenv, venv on Mac)
[Python] A program that compares the positions of kangaroos.
[Linux] How to install a package on a server that does not have a network environment (standalone)
Summary of points to keep in mind when writing a program that runs on Python 2.5
A story that pyenv is stuck because the python execution command PATH does not pass
A simple version of government statistics (immigration control) that is easy to handle with jupyter
A Python script that allows you to check the status of the server from your browser
[Python] Extracts data frames that do not match a specific column with other data frames of Pandas