rabbit-dev

現役スマフォプログラマーが適当にプログラム関係の記事を放り込むブログ

さくらサーバー(スタンダート)にnumpyをインストールする

結論から以下でインストールできる。

pip install numpy==1.6.1

 

バージョン指定なしだと以下のエラーがでる。。。


    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccoshf':
    numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinhf':
    numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccosh':
    numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinh':
    numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccoshf':
    numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinhf':
    numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccosh':
    numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
    numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinh':
    numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
    error: Command "cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -fPIC -Inumpy/core/include -Ibuild/src.freebsd-9.1-RELEASE-p24-amd64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python2.7 -Ibuild/src.freebsd-9.1-RELEASE-p24-amd64-2.7/numpy/core/src/private -Ibuild/src.freebsd-9.1-RELEASE-p24-amd64-2.7/numpy/core/src/private -Ibuild/src.freebsd-9.1-RELEASE-p24-amd64-2.7/numpy/core/src/private -c build/src.freebsd-9.1-RELEASE-p24-amd64-2.7/numpy/core/src/npymath/npy_math_complex.c -o build/temp.freebsd-9.1-RELEASE-p24-amd64-2.7/build/src.freebsd-9.1-RELEASE-p24-amd64-2.7/numpy/core/src/npymath/npy_math_complex.o" failed with exit status 1