[PYTHON] Use Numpy, Scipy, scikit-learn on Amazon Linux

background

Premise

I was addicted to

procedure

Roughly, I decided to use groups install to get everything I needed.

$ sudo yum groups install "Development tools" -y
$ sudo yum groups install "Development Libraries" -y
$ sudo yum install sqlite sqlite-devel  -y
$ sudo yum install lapack-devel blas-devel fftw-devel atlas-devel suitesparse-devel swig -y
$ pyenv local 2.7.8
$ pip install numpy scipy scikit-learn

It took me quite a while to figure out what fftw-devel was needed.

bonus

To force reinstall with pip, use the command below

$ pip install --upgrade --force-reinstall numpy scipy scikit-learn

Recommended Posts

Use Numpy, Scipy, scikit-learn on Amazon Linux
Use Numpy, Scipy, scikit-learn on Heroku
Use sshpass on Amazon linux2
Use Github Desktop on Linux
Put jenv on Amazon Linux
Install tomcat 5.5 on Amazon Linux.
Use OpenBLAS with numpy, scipy
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Use Linux on Windows 10 (WSL2)
Use host.docker.internal on linux (docker-compose required)
Install Python Pillow on Amazon Linux
Install oracle java8 on amazon linux2
Try installing OpenAM on Amazon Linux
Install pyenv on EC2 (Amazon Linux)
Use Chrome Remote Desktop on Linux
[Note] Install Imagick on Amazon Linux2
[Note] Run Django on Amazon Linux 2
Run docker-compose on Amazon Linux2 on ARM64
Introduce Python 3.5.2 environment on Amazon Linux
Use Linux commands on Android devices
Run cron on Amazon Linux (set on Linux)
Installation from python, numpy, scipy sources without root privileges on Linux
Use Numpy
I'll install Ruby on EC2 (Amazon Linux2) 2020
Install scipy on Linux without internet connection
I want to use Linux on mac
How to update php on Amazon linux 2
Build an LNPP environment on Amazon Linux 2
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Install CVXOPT, NumPy, SciPy on Travis CI
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install Anisble on Amazon Linux 2
Run Keycloak on Amazon Linux 2 without Docker
Use multithreaded BLAS / LAPACK with numpy / scipy
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
If you want to use NumPy, Pandas, Matplotlib, IPython, SciPy on Windows
Make SciPy, scikit-learn available on M1 chip Macbooks
Install and run Python3.5 + NumPy + SciPy on Windows 10
Why use linux
Jupyter Notebook Settings-How to use (EC2 Amazon Linux 2)
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Publish your Django app on Amazon Linux + Apache + mod_wsgi
Create an environment for MkDocs on Amazon Linux (attempted)
Preparing to use Ansible on an existing Linux server
Compile and install MySQL-python for python2.7 on amazon linux
I want to use OpenJDK 11 on Ubuntu Linux 18.04 LTS / 18.10
[AWS EC2] How to install Maven on Amazon Linux 2
[Tips] How to use iPhone as webcam on Linux
How to build a Python environment on amazon linux 2
Announcing the availability of Java 11 LTS on Amazon Linux 2
[AWS] How to expand disk space on Amazon linux
Daemonizing processes on Linux
jblas on Arch Linux
Linux (WSL) on Windows
Use pyvenv on Windows
Install numpy on Marvericks
Develop .NET on Linux
Wake on lan on Linux
How to use numpy
OpenVPN Summary + Amazon Linux2