Preparing to start "Python machine learning programming" (for macOS)

Preparing to start Python machine learning programming (for macOS)

(2017.01.09 OSX El Capitan)

Homebrew

If Homebrew is not installed Install Homebrew according to http://brew.sh/index_ja.html

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Python3

Install Python3 with Homebrew

brew install python3

numpy, scipy, pandas, sklearn

Install numpy, scipy, pandas, sklearn with pip

pip3 install numpy scipy pandas sklearn

matplotlib

Refer to http://qiita.com/ciela/items/32703d8dc6dd2297cc99, Install pkg-config, freetype with Homebrew, then install matplotlib with pip

brew install pkg-config freetype
pip3 install matplotlib

Sample code

Download Sample Code

Jyupyter

Install Jupyter with pip by referring to http://jupyter.org/install.html

pip3 install jupyter

Jupyter extension

Install Jupyter extension package with pip

pip3 install watermark

Start Jupyter

To start Jupyter, enter the following in the terminal

jupyter notebook

Jupyter operation check

Go to the downloaded Sample Code folder and go to Open a file such as code / ch02 / ch02.ipynb and click the Kernel tab in the menu at the top of the page. Click Restart & Run All

Recommended Posts

Preparing to start "Python machine learning programming" (for macOS)
An introduction to Python for machine learning
Python Machine Learning Programming> Keywords
<For beginners> python library <For machine learning>
For those who want to start machine learning with TensorFlow2
How to use machine learning for work? 03_Python coding procedure
Amplify images for machine learning with python
I installed Python 3.5.1 to study machine learning
Python learning memo for machine learning by Chainer Chapter 10 Introduction to Cupy
Why Python is chosen for machine learning
"Python Machine Learning Programming" Summary Note (Jupyter)
[Shakyo] Encounter with Python for machine learning
[Python] Web application design for machine learning
Python and machine learning environment construction (macOS)
Python learning memo for machine learning by Chainer Chapter 9 Introduction to scikit-learn
Take the free "Introduction to Python for Machine Learning" online until 4/27 application
[Python] Easy introduction to machine learning with python (SVM)
An introduction to machine learning for bot developers
Upgrade the Azure Machine Learning SDK for Python
[Python] Collect images with Icrawler for machine learning [1000 images]
Introduction to Programming (Python) TA Tendency for beginners
[For beginners] Introduction to vectorization in machine learning
Introduction to machine learning
How to Introduce IPython (Python2) to Mac OS X-Preparation for Introduction to Machine Learning Theory-
Python learning notes for machine learning with Chainer Chapters 11 and 12 Introduction to Pandas Matplotlib
Image collection Python script for creating datasets for machine learning
Build an interactive environment for machine learning in Python
Machine learning python code summary (updated from time to time)
How to run python in virtual space (for MacOS)
Python learning memo for machine learning by Chainer from Chapter 2
Python learning memo for machine learning by Chainer Chapters 1 and 2
[Python] I made a classifier for irises [Machine learning]
Attempt to include machine learning model in python package
Memo for building a machine learning environment using Python
Everything for beginners to be able to do machine learning
The first step of machine learning ~ For those who want to implement with python ~
Python Machine Learning Programming Chapter 1 Gives Computers the Ability to Learn from Data Summary
I tried to build an environment for machine learning with Python (Mac OS X)
Data set for machine learning
Japanese preprocessing for machine learning
Learning flow for Python beginners
An introduction to machine learning
Python learning plan for AI learning
Machine learning with Python! Preparation
OpenCV3 installation for Python3 @macOS
Start to Selenium using python
Checkio's recommendation for learning Python
An introduction to Python Programming
Beginning with Python machine learning
~ Tips for beginners to Python ③ ~
Super introduction to machine learning
Introduction to Python For, While
Build a python machine learning study environment on macOS sierra
Build an environment for machine learning using Python on MacOSX
Python Machine Learning Programming Chapter 2 Classification Problems-Machine Learning Algorithm Training Summary
Made icrawler easier to use for machine learning data collection
Python learning memo for machine learning by Chainer Chapter 7 Regression analysis
Raspberry Pi + python + IoT device, environment construction procedure to start image processing and machine learning
Introduction to machine learning Note writing
[Introduction to Python3 Day 1] Programming and Python
How about Anaconda for building a machine learning environment in Python?