3 Replies Latest reply on Feb 17, 2016 1:23 PM by Intel_Peter

    Does anyone install scipy on edison successfully?

    cer1991

      Hi everyone

      Dose anyone install scipy on edison successfully?

      Based on Python 2.7 and yocto image 2.1

      If you konw how to install it ,can you tell me how to do it or give me some guides?

      Regards,

      Chen

        • 1. Re: Does anyone install scipy on edison successfully?
          Intel_Peter

          Hello cer1991,

           

          I installed Numpy (a dependency of SciPy) using Python's pip command. First, you will need to install pip from AlexT's repo. You can find instructions on how to set the repo in Edison Package Repo Configuration Instructions.

           

          After the repo is set up, you can install pip with the following command:

           

          opkg update
          opkg install python-pip
          

           

          Then you can install NumPy with the command:

           

          pip install numpy
          

           

          Once NumPy is installed you can install SciPy, another user had issues installing it but he managed to resolve them, you can see the details in Re: Scipy on Edison Install error.

           

          Let us know if it helps.

           

          Peter.

          • 2. Re: Does anyone install scipy on edison successfully?
            cer1991

            Dear @Intel_Peter

            Thank you for your help.

            I have install 'pip' successfully , but when I install scipy,I meet some probelms as below:

            root@myedison2:~# pip install scipy
            Downloading/unpacking scipy
              Downloading scipy-0.17.0.tar.gz (12.4MB): 12.4MB downloaded
              Running setup.py egg_info for package scipy
               
                warning: no previously-included files matching '*_subr_*.f' found under directory 'scipy/linalg/src/id_dist/src'
                no previously-included directories found matching 'benchmarks/env'
                no previously-included directories found matching 'benchmarks/results'
                no previously-included directories found matching 'benchmarks/html'
                no previously-included directories found matching 'benchmarks/scipy'
                no previously-included directories found matching 'scipy/special/tests/data/boost'
                no previously-included directories found matching 'scipy/special/tests/data/gsl'
                no previously-included directories found matching 'doc/build'
                no previously-included directories found matching 'doc/source/generated'
                no previously-included directories found matching '*/__pycache__'
                warning: no previously-included files matching '*~' found anywhere in distribution
                warning: no previously-included files matching '*.bak' found anywhere in distribution
                warning: no previously-included files matching '*.swp' found anywhere in distribution
                warning: no previously-included files matching '*.pyo' found anywhere in distribution
            Installing collected packages: scipy
              Running setup.py install for scipy
                lapack_opt_info:
                lapack_mkl_info:
                mkl_info:
                  libraries mkl,vml,guide not found in ['/usr/lib']
                  NOT AVAILABLE
               
                  NOT AVAILABLE
               
                atlas_threads_info:
                Setting PTATLAS=ATLAS
                  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
                  libraries lapack_atlas not found in /usr/lib
                numpy.distutils.system_info.atlas_threads_info
                  NOT AVAILABLE
               
                atlas_info:
                  libraries f77blas,cblas,atlas not found in /usr/lib
                  libraries lapack_atlas not found in /usr/lib
                numpy.distutils.system_info.atlas_info
                  NOT AVAILABLE
               
                /usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1379: 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.
                  warnings.warn(AtlasNotFoundError.__doc__)
                lapack_info:
                  libraries lapack not found in ['/usr/lib']
                  NOT AVAILABLE
               
                /usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1390: 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.
                  warnings.warn(LapackNotFoundError.__doc__)
                lapack_src_info:
                  NOT AVAILABLE
               
                /usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1393: 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.
                  warnings.warn(LapackSrcNotFoundError.__doc__)
                  NOT AVAILABLE
               
                Running from scipy source directory.
                Traceback (most recent call last):
                  File "<string>", line 1, in <module>
                  File "/tmp/pip-build-root/scipy/setup.py", line 265, in <module>
                    setup_package()
                  File "/tmp/pip-build-root/scipy/setup.py", line 262, in setup_package
                    setup(**metadata)
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/core.py", line 152, in setup
                    config = configuration()
                  File "/tmp/pip-build-root/scipy/setup.py", line 182, in configuration
                    config.add_subpackage('scipy')
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage
                    caller_level = 2)
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage
                    caller_level = caller_level + 1)
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py
                    config = setup_module.configuration(*args)
                  File "scipy/setup.py", line 15, in configuration
                    config.add_subpackage('linalg')
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage
                    caller_level = 2)
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage
                    caller_level = caller_level + 1)
                  File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py
                    config = setup_module.configuration(*args)
                  File "scipy/linalg/setup.py", line 20, in configuration
                    raise NotFoundError('no lapack/blas resources found')
                numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
                Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nv2x8g-record/install-record.txt --single-version-externally-managed:
                lapack_opt_info:
            
            lapack_mkl_info:
            
            mkl_info:
            
              libraries mkl,vml,guide not found in ['/usr/lib']
            
              NOT AVAILABLE
            
            
            
              NOT AVAILABLE
            
            
            
            atlas_threads_info:
            
            Setting PTATLAS=ATLAS
            
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib
            
              libraries lapack_atlas not found in /usr/lib
            
            numpy.distutils.system_info.atlas_threads_info
            
              NOT AVAILABLE
            
            
            
            atlas_info:
            
              libraries f77blas,cblas,atlas not found in /usr/lib
            
              libraries lapack_atlas not found in /usr/lib
            
            numpy.distutils.system_info.atlas_info
            
              NOT AVAILABLE
            
            
            
            /usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1379: 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.
            
              warnings.warn(AtlasNotFoundError.__doc__)
            
            lapack_info:
            
              libraries lapack not found in ['/usr/lib']
            
              NOT AVAILABLE
            
            
            
            /usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1390: 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.
            
              warnings.warn(LapackNotFoundError.__doc__)
            
            lapack_src_info:
            
              NOT AVAILABLE
            
            
            
            /usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:1393: 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.
            
              warnings.warn(LapackSrcNotFoundError.__doc__)
            
              NOT AVAILABLE
            
            
            
            Running from scipy source directory.
            
            Traceback (most recent call last):
            
              File "<string>", line 1, in <module>
            
              File "/tmp/pip-build-root/scipy/setup.py", line 265, in <module>
            
                setup_package()
            
              File "/tmp/pip-build-root/scipy/setup.py", line 262, in setup_package
            
                setup(**metadata)
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/core.py", line 152, in setup
            
                config = configuration()
            
              File "/tmp/pip-build-root/scipy/setup.py", line 182, in configuration
            
                config.add_subpackage('scipy')
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage
            
                caller_level = 2)
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage
            
                caller_level = caller_level + 1)
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py
            
                config = setup_module.configuration(*args)
            
              File "scipy/setup.py", line 15, in configuration
            
                config.add_subpackage('linalg')
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1003, in add_subpackage
            
                caller_level = 2)
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 972, in get_subpackage
            
                caller_level = caller_level + 1)
            
              File "/usr/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 909, in _get_configuration_from_setup_py
            
                config = setup_module.configuration(*args)
            
              File "scipy/linalg/setup.py", line 20, in configuration
            
                raise NotFoundError('no lapack/blas resources found')
            
            numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
            
            ----------------------------------------
            Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-root/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nv2x8g-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/scipy
            Storing complete log in /home/root/.pip/pip.log
            
            
            

            Do you know how to fix it?

            Regards,

            cer1991

            • 3. Re: Does anyone install scipy on edison successfully?
              Intel_Peter

              I'd suggest you to contact scipy for a more accurate answer. You can contact them in:

               

              SciPy Google Groups

              Mailing_Lists - SciPy wiki dump

               

              Peter.