Start numerical calculation in Python (with Homebrew and pip)

MacOSX 10.8.5(Mountain Lion) Build an environment where you can perform numerical calculations with Python.

This time I will try using Homebrew and pip. Homebrew is version 0.9.5.

First, install various things with the following commands.

$ brew install python
$ sudo easy_install pip
$ sudo pip install ipython
$ sudo pip install scipy
$ sudo pip install ipython

In this environment, python 2.7.6 and pip 1.5.4 are installed.

Since the Fortran compiler is required to install Scipy, install gfortran.

$ brew install gfortran
$ sudo pip install scipy

It took a long time to install Scipy.

From here, it is preparation for installing matplotlib.

$ brew install freetype

Without this, the installation of matplotlib will moss. It was also necessary to create the following symbolic links. (I referred to here)

$ ln -s /usr/local/opt/freetype/include/freetype2 /usr/local/include/freetype

And install matplotlib

sudo pip install matplotlib

I don't know if I will use it, but I will also install pandas

$ sudo pip install pandas

Below is the result of checking each version with pip freeze.

ipython==1.2.1
matplotlib==1.3.1
numpy==1.6.1
pandas==0.13.1
scipy==0.13.3

Recommended Posts

Start numerical calculation in Python (with Homebrew and pip)
Numerical calculation with Python
Install Python 2.7.9 and Python 3.4.x with pip.
Python installation and package management with pip
Dealing with "years and months" in Python
Install pip in Serverless Framework and AWS Lambda with Python environment
Homebrew Vim doesn't start with Python 3.8 error Note
[Python] pip and wheel
Date calculation in python
Date calculation in Python
How to do hash calculation with salt in Python
Findings when accelerating numerical calculations with Python and Numba
[python] Calculation of months and years of difference in datetime
Calculate Pose and Transform differences in Python with ROS
Build a numerical calculation environment with pyenv and miniconda3
Programming with Python and Tkinter
Encryption and decryption with Python
Scraping with selenium in Python
Python and hardware-Using RS232C with Python-
Working with LibreOffice in Python
Scraping with chromedriver in python
Debugging with pdb in Python
Shapley value calculation in Python
Working with sounds in Python
Scraping with Selenium in Python
[Gimp] Start scripting in Python
Tweet with image in Python
Combined with permutations in Python
Stack and Queue in Python
python with pyenv and venv
Unittest and CI in Python
Works with Python and R
Design and test Verilog in Python only with Veriloggen and cocotb.
[Road to intermediate Python] Install packages in bulk with pip
Numerical calculation with Phython while learning nonlinear dynamics and chaos [1]
Install python3 and scientific calculation library on Ubuntu (virtualenv + pip)
Play with Mastodon's archive in Python 2 Count replies and favourites
Notes on deploying pyenv with Homebrew and managing Python versions
Install CaboCha in Ubuntu environment and call it with Python.
How to log in to AtCoder with Python and submit automatically
Communicate with FX-5204PS with Python and PyUSB
Number recognition in images with Python
Play with numerical calculation of magnetohydrodynamics
MIDI packages in Python midi and pretty_midi
Robot running with Arduino and python
Testing with random numbers in Python
Neural network with OpenCV 3 and Python 3
AM modulation and demodulation with python
Difference between == and is in python
[Python] font family and font with matplotlib
Scraping with Node, Ruby and Python
View photos in Python and html
GOTO in Python with Sublime Text 3
Quantum chemistry calculation in Python (Psi4)
Setup modern Python environment with Homebrew
Sorting algorithm and implementation in Python
Scraping with Selenium in Python (Basic)
CSS parsing with cssutils in Python
Scraping with Python, Selenium and Chromedriver
I want to solve APG4b with Python (only 4.01 and 4.04 in Chapter 4)
Manipulate files and folders in Python