pip install numpy fails (python 2.7 on Artik 710 board (Fedora)) -
i'm installing numpy through pip on samsung artik 710 (fedora , python 2.7). pip version 9.0.1.
i have inputted following:
pip install numpy
however following error message:
collecting numpy using cached numpy-1.12.1.zip installing collected packages: numpy running setup.py install numpy ... error complete output command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xyasfu/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-shmawz-record/install-record.txt --single-version-externally-managed --compile: running numpy source directory. note: if need reliable uninstall behavior, install pip instead of using `setup.py install`: - `pip install .` (from git repo or downloaded source release) - `pip install numpy` (last numpy release on pypi) blas_opt_info: blas_mkl_info: libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available blis_info: libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available openblas_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available atlas_3_10_blas_threads_info: setting ptatlas=atlas libraries tatlas not found in ['/usr/local/lib', '/usr/lib/sse2', '/usr/lib', '/usr/lib/sse2', '/usr/lib/'] not available atlas_3_10_blas_info: libraries satlas not found in ['/usr/local/lib', '/usr/lib/sse2', '/usr/lib', '/usr/lib/sse2', '/usr/lib/'] not available atlas_blas_threads_info: setting ptatlas=atlas libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib/sse2', '/usr/lib', '/usr/lib/sse2', '/usr/lib/'] not available atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib/sse2', '/usr/lib', '/usr/lib/sse2', '/usr/lib/'] not available /tmp/pip-build-xyasfu/numpy/numpy/distutils/system_info.py:572: userwarning: atlas (http://math-atlas.sourceforge.net/) libraries not found. directories search libraries can specified in numpy/distutils/site.cfg file (section [atlas]) or setting atlas environment variable. self.calc_info() blas_info: libraries blas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available /tmp/pip-build-xyasfu/numpy/numpy/distutils/system_info.py:572: userwarning: blas (http://www.netlib.org/blas/) libraries not found. directories search libraries can specified in numpy/distutils/site.cfg file (section [blas]) or setting blas environment variable. self.calc_info() blas_src_info: not available /tmp/pip-build-xyasfu/numpy/numpy/distutils/system_info.py:572: userwarning: blas (http://www.netlib.org/blas/) sources not found. directories search sources can specified in numpy/distutils/site.cfg file (section [blas_src]) or setting blas_src environment variable. self.calc_info() not available /bin/sh: svnversion: command not found non-existing path in 'numpy/distutils': 'site.cfg' /bin/sh: svnversion: command not found f2py version 2 lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available openblas_lapack_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available atlas_3_10_threads_info: setting ptatlas=atlas libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries tatlas,tatlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries tatlas,tatlas not found in /usr/lib/ libraries lapack_atlas not found in /usr/lib/ <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> not available atlas_3_10_info: libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries satlas,satlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries satlas,satlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries satlas,satlas not found in /usr/lib/ libraries lapack_atlas not found in /usr/lib/ <class 'numpy.distutils.system_info.atlas_3_10_info'> not available atlas_threads_info: setting ptatlas=atlas libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries ptf77blas,ptcblas,atlas not found in /usr/lib/ libraries lapack_atlas not found in /usr/lib/ <class 'numpy.distutils.system_info.atlas_threads_info'> not available atlas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries f77blas,cblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib libraries f77blas,cblas,atlas not found in /usr/lib/sse2 libraries lapack_atlas not found in /usr/lib/sse2 libraries f77blas,cblas,atlas not found in /usr/lib/ libraries lapack_atlas not found in /usr/lib/ <class 'numpy.distutils.system_info.atlas_info'> not available lapack_info: libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/'] not available /tmp/pip-build-xyasfu/numpy/numpy/distutils/system_info.py:572: userwarning: lapack (http://www.netlib.org/lapack/) libraries not found. directories search libraries can specified in numpy/distutils/site.cfg file (section [lapack]) or setting lapack environment variable. self.calc_info() lapack_src_info: not available /tmp/pip-build-xyasfu/numpy/numpy/distutils/system_info.py:572: userwarning: lapack (http://www.netlib.org/lapack/) sources not found. directories search sources can specified in numpy/distutils/site.cfg file (section [lapack_src]) or setting lapack_src environment variable. self.calc_info() not available /usr/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'define_macros' warnings.warn(msg) running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build creating build/src.linux-armv7l-2.7 creating build/src.linux-armv7l-2.7/numpy creating build/src.linux-armv7l-2.7/numpy/distutils building library "npymath" sources customize gnu95fcompiler not locate executable gfortran not locate executable f95 customize intelfcompiler not locate executable ifort not locate executable ifc customize laheyfcompiler not locate executable lf95 customize pgroupfcompiler not locate executable pgfortran customize absoftfcompiler not locate executable f90 not locate executable f77 customize nagfcompiler customize vastfcompiler customize compaqfcompiler not locate executable fort customize intelitaniumfcompiler not locate executable efort not locate executable efc customize intelem64tfcompiler customize gnufcompiler not locate executable g77 customize g95fcompiler not locate executable g95 customize pathscalefcompiler not locate executable pathf95 don't know how compile fortran code on platform 'posix' c compiler: gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -fpic compile options: '-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/include/python2.7 -c' gcc: _configtest.c gcc -pthread _configtest.o -o _configtest success! removing: _configtest.c _configtest.o _configtest c compiler: gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -fpic compile options: '-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/include/python2.7 -c' gcc: _configtest.c _configtest.c:1:5: warning: conflicting types built-in function ‘exp’ int exp (void); ^~~ gcc -pthread _configtest.o -o _configtest _configtest.o: in function `main': /tmp/pip-build-xyasfu/numpy/_configtest.c:6: undefined reference `exp' collect2: error: ld returned 1 exit status _configtest.o: in function `main': /tmp/pip-build-xyasfu/numpy/_configtest.c:6: undefined reference `exp' collect2: error: ld returned 1 exit status failure. removing: _configtest.c _configtest.o c compiler: gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -fpic compile options: '-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/include/python2.7 -c' gcc: _configtest.c _configtest.c:1:5: warning: conflicting types built-in function ‘exp’ int exp (void); ^~~ gcc -pthread _configtest.o -lm -o _configtest success! removing: _configtest.c _configtest.o _configtest creating build/src.linux-armv7l-2.7/numpy/core creating build/src.linux-armv7l-2.7/numpy/core/src creating build/src.linux-armv7l-2.7/numpy/core/src/npymath conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npymath/npy_math.c conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npymath/ieee754.c conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npymath/npy_math_complex.c building library "npysort" sources creating build/src.linux-armv7l-2.7/numpy/core/src/npysort conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npysort/quicksort.c conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npysort/mergesort.c conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npysort/heapsort.c creating build/src.linux-armv7l-2.7/numpy/core/src/private conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/private/npy_partition.h adding 'build/src.linux-armv7l-2.7/numpy/core/src/private' include_dirs. conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npysort/selection.c conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/private/npy_binsearch.h conv_template:> build/src.linux-armv7l-2.7/numpy/core/src/npysort/binsearch.c none - nothing done h_files = ['build/src.linux-armv7l-2.7/numpy/core/src/private/npy_partition.h', 'build/src.linux-armv7l-2.7/numpy/core/src/private/npy_binsearch.h'] building extension "numpy.core._dummy" sources generating build/src.linux-armv7l-2.7/numpy/core/include/numpy/config.h c compiler: gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -werror=format-security -wp,-d_fortify_source=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -d_gnu_source -fpic -fwrapv -fpic compile options: '-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/include/python2.7 -c' gcc: _configtest.c _configtest.c:1:20: fatal error: python.h: no such file or directory #include <python.h> ^ compilation terminated. _configtest.c:1:20: fatal error: python.h: no such file or directory #include <python.h> ^ compilation terminated. failure. removing: _configtest.c _configtest.o traceback (most recent call last): file "<string>", line 1, in <module> file "/tmp/pip-build-xyasfu/numpy/setup.py", line 391, in <module> setup_package() file "/tmp/pip-build-xyasfu/numpy/setup.py", line 383, in setup_package setup(**metadata) file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) file "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() file "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) file "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/install.py", line 62, in run r = self.setuptools_run() file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/install.py", line 36, in setuptools_run return distutils_install.run(self) file "/usr/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') file "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) file "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/build.py", line 47, in run old_build.run(self) file "/usr/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) file "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) file "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/build_src.py", line 148, in run self.build_sources() file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/build_src.py", line 165, in build_sources self.build_extension_sources(ext) file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/build_src.py", line 324, in build_extension_sources sources = self.generate_sources(sources, ext) file "/tmp/pip-build-xyasfu/numpy/numpy/distutils/command/build_src.py", line 377, in generate_sources source = func(extension, build_dir) file "numpy/core/setup.py", line 416, in generate_config_h moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir) file "numpy/core/setup.py", line 40, in check_types out = check_types(*a, **kw) file "numpy/core/setup.py", line 275, in check_types "install {0}-dev|{0}-devel.".format(python)) systemerror: cannot compile 'python.h'. perhaps need install python-dev|python-devel. ---------------------------------------- command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xyasfu/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-shmawz-record/install-record.txt --single-version-externally-managed --compile" failed error code 1 in /tmp/pip-build-xyasfu/numpy/
please me. thank you.
it looks you're missing python-devel
package in operating system - required python packages use compiled c code performance, numpy.
try running yum install python-devel
- if works, retry pip install numpy
.
Comments
Post a Comment