pip install something but error with could not find a satisfies version

when I want to use pip to install some package like mkl in jetson tx2 I found out that error with “could not find a version that satisfies the requirement mkl”, it seems that the jetson tx2 use aarch64, but most of the package are provided with version of win32 or win_amd64. But I still do not understand why I can install some other package like urllib3? Because they don’t care which architecture you use?

how can I install mkl use pip?

Hi,

You can check this page for the supported hardware of MKLibrary:
https://software.intel.com/en-us/mkl

Supported Hardware
-------------------------------
Intel® Xeon® processor
Intel® Core™ processor family
Intel Atom® processor
Intel® Xeon Phi™ processor

It depends on Intel CPU but Jetson is ARM based. That’s why you cannot install it for TX2.
Thanks.

I think the fault when I try to install scipy in jetson tx2 using “pip3 install scipy” is I lack some library including mkl, the full error message as below. I make something import message showed in yellow.

How can I install scipy?

nvidia@tegra-ubuntu:~$ pip3 install scipy
Collecting scipy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/07/76/7e844757b9f3bf5ab9f951ccd3e4a8eed91ab8720b0aac8c2adcc2fdae9f/scipy-1.1.0.tar.gz
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-s0ed37ri/scipy/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” bdist_wheel -d /tmp/tmp2trf3eg7pip-wheel- --python-tag cp35:
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found
in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found
in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found
in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas,tatlas not found
in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found
in /usr/local/lib
customize UnixCCompiler
libraries tatlas,tatlas not found
in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found
in /usr/lib
customize UnixCCompiler
libraries tatlas,tatlas not found
in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found
in /usr/lib/aarch64-linux-gnu
<class ‘numpy.distutils.system_info.atlas_3_10_threads_info’>
NOT AVAILABLE

atlas_3_10_info:
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class ‘numpy.distutils.system_info.atlas_3_10_info’>
NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class ‘numpy.distutils.system_info.atlas_threads_info’>
NOT AVAILABLE

atlas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class ‘numpy.distutils.system_info.atlas_info’>
NOT AVAILABLE

accelerate_info:
NOT AVAILABLE

/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/system_info.py:625: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
lapack_info:
customize UnixCCompiler
libraries lapack not found in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/system_info.py:625: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
lapack_src_info:
NOT AVAILABLE

/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/system_info.py:625: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
NOT AVAILABLE

Running from scipy source directory.
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-s0ed37ri/scipy/setup.py”, line 474, in
setup_package()
File “/tmp/pip-build-s0ed37ri/scipy/setup.py”, line 470, in setup_package
setup(**metadata)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/core.py”, line 135, in setup
config = configuration()
File “/tmp/pip-build-s0ed37ri/scipy/setup.py”, line 388, in configuration
config.add_subpackage(‘scipy’)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py”, line 1034, in add_subpackage
caller_level = 2)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py”, line 1003, in get_subpackage
caller_level = caller_level + 1)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py”, line 940, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File “scipy/setup.py”, line 15, in configuration
config.add_subpackage(‘linalg’)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py”, line 1034, in add_subpackage
caller_level = 2)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py”, line 1003, in get_subpackage
caller_level = caller_level + 1)
File “/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py”, line 940, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File “scipy/linalg/setup.py”, line 19, in configuration
raise NotFoundError(‘no lapack/blas resources found’)
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found


Failed building wheel for scipy
Running setup.py clean for scipy
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-s0ed37ri/scipy/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” clean --all:

setup.py clean is not supported, use one of the following instead:

- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
                    files that aren't checked into the git repo)

Add --force to your command to use it anyway if you must (unsupported).


Failed cleaning build dir for scipy
Failed to build scipy
Installing collected packages: scipy
Running setup.py install for scipy … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-s0ed37ri/scipy/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-_6ihi9eb-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

  - `pip install .`       (from a git repo or downloaded source
                           release)
  - `pip install scipy`   (last SciPy release on PyPI)


lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
  libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
  libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries tatlas,tatlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries tatlas,tatlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
  NOT AVAILABLE

atlas_3_10_info:
customize UnixCCompiler
  libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries satlas,satlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries satlas,satlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_info'>
  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_threads_info'>
  NOT AVAILABLE

atlas_info:
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /usr/lib
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
  libraries f77blas,cblas,atlas not found in /usr/lib/aarch64-linux-gnu
customize UnixCCompiler
  libraries lapack_atlas not found in /usr/lib/aarch64-linux-gnu
<class 'numpy.distutils.system_info.atlas_info'>
  NOT AVAILABLE

accelerate_info:
  NOT AVAILABLE

/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/system_info.py:625: UserWarning:
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  self.calc_info()
lapack_info:
customize UnixCCompiler
  libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']
  NOT AVAILABLE

/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/system_info.py:625: UserWarning:
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  self.calc_info()
lapack_src_info:
  NOT AVAILABLE

/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/system_info.py:625: UserWarning:
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  self.calc_info()
  NOT AVAILABLE

Running from scipy source directory.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-s0ed37ri/scipy/setup.py", line 474, in <module>
    setup_package()
  File "/tmp/pip-build-s0ed37ri/scipy/setup.py", line 470, in setup_package
    setup(**metadata)
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/core.py", line 135, in setup
    config = configuration()
  File "/tmp/pip-build-s0ed37ri/scipy/setup.py", line 388, in configuration
    config.add_subpackage('scipy')
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1034, in add_subpackage
    caller_level = 2)
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1003, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 940, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 15, in configuration
    config.add_subpackage('linalg')
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1034, in add_subpackage
    caller_level = 2)
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1003, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/nvidia/.local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 940, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/linalg/setup.py", line 19, in configuration
    raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

----------------------------------------

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-s0ed37ri/scipy/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-_6ihi9eb-record/install-record.txt --single-version-externally-managed --compile --user --prefix=” failed with error code 1 in /tmp/pip-build-s0ed37ri/scipy/

Hi,

Try to install BLAS and LAPACK first.

For example:

$ sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
$ sudo pip3 install scipy

Thanks.

Thanks. It works!

Hi All,

It did not work for me :-(

I followed above instructions and many others I found re. scipy, but I always get this error about mkl_rt library … how can I fix this?

Building wheels for collected packages: scipy
Building wheel for scipy (PEP 517) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpxo8_4q4q
cwd: /tmp/pip-install-085i5evl/scipy
Complete output (4879 lines):
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in [’/usr/local/lib’, ‘/usr/lib’, ‘/usr/lib/aarch64-linux-gnu’]
NOT AVAILABLE

Thank you for your attention,

       Ezio

Hi Ezio,

Please open a new topic for your issue. Thanks

Please open a new topic for your issue. Thanks

No need. I found a solution:

$ sudo apt install python3-scipy

Thanks, ezio