2016-03-27 15 views
1

Numpyの「numpy-1.12.0.dev0 + 1380fdd-py2.7-linux-x86_64.egg」をインテルMKLのソースからインストールしました(主にhttps://software.intel.com/en-us/articles/numpyscipy-with-intel-mklの指示に従います)。 numpy.show_config()は、次のことを示していますIntel MKLでScipyをインストールできない

Python 2.7.10 (default, Sep 8 2015, 17:20:17) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import numpy 
>>> numpy.show_config() 
lapack_opt_info: 
    libraries = ['mkl_rt', 'pthread'] 
    library_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/lib/intel64'] 
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] 
    include_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/include'] 
blas_opt_info: 
    libraries = ['mkl_rt', 'pthread'] 
    library_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/lib/intel64'] 
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] 
    include_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/include'] 
lapack_mkl_info: 
    libraries = ['mkl_rt', 'pthread'] 
    library_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/lib/intel64'] 
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] 
    include_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/include'] 
blas_mkl_info: 
    libraries = ['mkl_rt', 'pthread'] 
    library_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/lib/intel64'] 
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] 
    include_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/include'] 
mkl_info: 
    libraries = ['mkl_rt', 'pthread'] 
    library_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/lib/intel64'] 
    define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] 
    include_dirs = ['/opt/intel/compilers_and_libraries_2016.1.150/linux/mkl/include'] 

またnumpy.test()は細かい作業を行います。

>>> numpy.test() 
Running unit tests for numpy 
NumPy version 1.12.0.dev0+1380fdd 
NumPy relaxed strides checking option: True 
NumPy is installed in /usr/lib64/python2.7/site-packages/numpy-1.12.0.dev0+1380fdd-py2.7-linux-x86_64.egg/numpy 
Python version 2.7.10 (default, Sep 8 2015, 17:20:17) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] 
nose version 1.3.7 
[....................SKIP..........................] 
---------------------------------------------------------------------- 
Ran 5855 tests in 51.180s 

OK (KNOWNFAIL=6, SKIP=8) 
<nose.result.TextTestResult run=5855 errors=0 failures=0> 

しかし、私はpython setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem install経由でもpip install scipyを経ても、ソースからscipyのダウンロードをインストールすることはできませんよ、いくつかの理由があります。ソースから私は次のエラーが表示されます

RuntimeError: Running cythonize failed! 

はcythonのチェック:

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ticToS/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qnZ8HE-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ticToS/scipy/ 

私が間違ってやっている任意のアイデアを:

cython -V 
Cython version 0.23 

は、それをインストールピップ経由につながりますか?

私のOSはThinkPad T450sのFedora 23です。また、インテルMKLを使用しないと、numpy.test()がはるかに高速であることも認識しています。これについての説明は?

ありがとうございました。

答えて

1

redhat-rpm-configをインストールすると、groupinstallで'Development Tools'が問題を解決しました。

関連する問題