[PYTHON] Install numba on CentOS 7.2
You can easily install numba with conda, but for various reasons, I installed it with pip. The following is the procedure. In addition, Python uses 2.7.
1. Install cmake
- Download cmake-3.7.0-rc1-Linux-x86_64.sh from https://cmake.org/download/
- At the download destination (e.g. / home / user / download),
sh cmake-3.7.0-rc1-Linux-x86_64.sh
- Directory cmake-3.7.0-rc1-Linux-x86_64 is created and cmake is installed in it
2. Install LLVM
- Download the LLVM source code from http://llvm.org/releases/download.html#3.8.1
- At the download destination (e.g. /home/user/download),
tar xvfJ llvm-3.8.1.src.tar.xz
cd llvm-3.8.1.src
mkdir build
cd build
../../cmake-3.7.0-rc1-Linux-x86_64/bin/cmake ..
make
sudo make install
3. Install llvmlite
su
export LLVM_CONFIG=/usr/local/bin/llvm-config
yum install libstdc++-static
pip install llvmlite
exit
4. Install numba
sudo pip install numba
5. numba test
- Refer to http://yutori-datascience.hatenablog.com/entry/2014/12/09/235628 Created and executed a test program in ⇒ It worked correctly!