[SciPy-Dev] Error while trying to build scipy: NotFoundError: no lapack/blas resources found

Pinaki Nath Chowdhury pinakinathc at gmail.com
Sun Feb 25 15:15:30 EST 2018


Thank you very much.
As you all pointed out, I needed to get BLAS and LAPACK development
libraries and fortan compiler.
hence the issue was resolved by simply using:
`sudo apt-get install libblas-dev liblapack-dev gfortran`

But I am a bit worried that this command installed those development
libraries in my main system and not in the virtualenv.
So just out of curiosity I wanted to ask, if there is some way in which we
can completely install all packages in a virtualenv and then start coding?
When I no more feel like working, I can simple delete the virtualenv.

Thanks
Pinaki

On Mon, Feb 26, 2018 at 12:32 AM, Mark Mikofski <bwana.marko at yahoo.com>
wrote:

> Hi Pinaki,
>
> Building SciPy from source requires BLAS and LAPACK development libraries,
> and aFORTRAN compiler. That seems to me to be what your traceback is
> complaint about.
>
> Can you use a wheel instead? There are wheels for every platform at pypi:
> https://pypi.python.org/pypi/scipy
>
> Can you tell us what platform you are using? If it is Ubuntu Linux try
> libblas-dev, liblapack-dev, libopenblas-dev, and gfortran by using `sudo
> apt install <package>`. In rhel/fedora the names are slightly different.
>
> If you're in Mac osx, building from source then you probably will need
> homebrew to install the dev libraries and gcc (which different from clang
> that shops with xcode)
>
> Try reading the dev docs on building SciPy from source here:
> https://scipy.github.io/devdocs/building/index.html
>
> Another thought is if you are missing conda and pip, it's possible you
> have different sources of BLAS and LAPACK. Start your Python interpreter,
> import numpy and execute `numpy.show_config()` to see what numpy was built
> with. You will have to match the configuration for scipy.
>
> Hope this helps?
>
>
> Sent from Yahoo Mail on Android
>
> On Sun, Feb 25, 2018 at 10:34 AM, Pinaki Nath Chowdhury
> <pinakinathc at gmail.com> wrote:
> Hi
> I am trying to build Scipy package in virtualenv and getting the following
> error message:
>
> ```
> Traceback (most recent call last):
>   File "setup.py", line 467, in <module>
>     setup_package()
>   File "setup.py", line 463, in setup_package
>     setup(**metadata)
>   File "/home/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/core.py",
> line 135, in setup
>     config = configuration()
>   File "setup.py", line 381, in configuration
>     config.add_subpackage('scipy')
>   File "/home/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 1024, in add_subpackage
>     caller_level = 2)
>   File "/home/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 993, in get_subpackage
>     caller_level = caller_level + 1)
>   File "/home/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 930, 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/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 1024, in add_subpackage
>     caller_level = 2)
>   File "/home/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 993, in get_subpackage
>     caller_level = caller_level + 1)
>   File "/home/pinaki/gsoc/local/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 930, 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
> ```
>
> The following is details of my system:
> ```
> *python --verison :* Python 2.7.12
>
> *pip freeze :*
>
> alabaster==0.7.10
> Babel==2.5.3
> certifi==2018.1.18
> chardet==3.0.4
> Cython==0.27.3
> docutils==0.14
> idna==2.6
> imagesize==1.0.0
> Jinja2==2.10
> MarkupSafe==1.0
> numpy==1.14.1
> packaging==16.8
> Pygments==2.2.0
> pyparsing==2.2.0
> pytz==2018.3
> requests==2.18.4
> six==1.11.0
> snowballstemmer==1.2.1
> Sphinx==1.7.1
> sphinxcontrib-websupport==1.0.1
> typing==3.6.4
> urllib3==1.22
> ```
>
> Hope the above information is sufficient.
>
> Thanks
> Pinaki
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180226/c55dea19/attachment-0001.html>


More information about the SciPy-Dev mailing list