LoginSignup
2
1

More than 5 years have passed since last update.

CentOS 7.2にnumbaをインストールする

Last updated at Posted at 2016-10-14

numbaを、condaで簡単にインストールできるところだが、諸般の事情もあってpipでインストールしてみた。以下はその手順。なお、Pythonは2.7を使用。

1. cmakeのインストール

  1. https://cmake.org/download/から、cmake-3.7.0-rc1-Linux-x86_64.shをダウンロード
  2. ダウンロード先(e.g. /home/ユーザ/download)にて、sh cmake-3.7.0-rc1-Linux-x86_64.sh
  3. ディレクトリcmake-3.7.0-rc1-Linux-x86_64が作成され、その中にcmakeがインストールされる

2. LLVMのインストール

  1. http://llvm.org/releases/download.html#3.8.1から、LLVM source codeをダウンロード
  2. ダウンロード先(e.g. /home/ユーザ/download)にて、tar xvfJ llvm-3.8.1.src.tar.xz
  3. cd llvm-3.8.1.src
  4. mkdir build
  5. cd build
  6. ../../cmake-3.7.0-rc1-Linux-x86_64/bin/cmake ..
  7. make
  8. sudo make install

3. llvmliteのインストール

  1. su
  2. export LLVM_CONFIG=/usr/local/bin/llvm-config
  3. yum install libstdc++-static
  4. pip install llvmlite
  5. exit

4. numbaのインストール

  1. sudo pip install numba

5. numbaのテスト

  1. http://yutori-datascience.hatenablog.com/entry/2014/12/09/235628を参考にテストプログラムを作成、実行⇒正しく動いた!
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1