scipy install problem when setting up Intro to Machine learning environment...

by: GaryNR, 8 years ago


Good morning fellow Pythons :) ! I hope your weekend is good so far.

I've just started your Intro to Machine Learning course, which looks excellent, and
have managed to install nearly all the pre-requisite packages.
However, I am trying to install scipy using pip on my Windows10 maching and get an error as per below. Any ideas/comments etc would be great. I am fairly new to Python.


C:UsersGaryR>pip install scipy
Collecting scipy
  Using cached scipy-0.17.1.tar.gz
Installing collected packages: scipy
  Running setup.py install for scipy ... error
    Complete output from command c:usersgaryrappdatalocalprogramspythonpython35python.exe -u -c "import setuptools, tokenize;__file__='C:UsersGaryRAppDataLocalTemppip-build-ze3qwtjmscipysetup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:UsersGaryRAppDataLocalTemppip-fywvvyrr-recordinstall-record.txt --single-version-externally-managed --compile:
    lapack_opt_info:
    openblas_lapack_info:
      libraries openblas not found in ['c:usersgaryrappdatalocalprogramspythonpython35lib', 'C:', 'c:usersgaryrappdatalocalprogramspythonpython35libs']
      NOT AVAILABLE

    lapack_mkl_info:
    mkl_info:
      libraries mkl,vml,guide not found in ['c:usersgaryrappdatalocalprogramspythonpython35lib', 'C:', 'c:usersgaryrappdatalocalprogramspythonpython35libs']
      NOT AVAILABLE

      NOT AVAILABLE

    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilssystem_info.py:639: UserWarning: Specified path C:projectsnumpy-wheelswindows-wheel-builderatlas-buildsatlas-3.11.38-sse2-64lib is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE

    atlas_3_10_info:
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE

    atlas_threads_info:
    Setting PTATLAS=ATLAS
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE

    atlas_info:
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE

    c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilssystem_info.py:1548: 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 ['c:usersgaryrappdatalocalprogramspythonpython35lib', 'C:', 'c:usersgaryrappdatalocalprogramspythonpython35libs']
      NOT AVAILABLE

    c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilssystem_info.py:1559: 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

    c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilssystem_info.py:1562: 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 "C:UsersGaryRAppDataLocalTemppip-build-ze3qwtjmscipysetup.py", line 265, in <module>
        setup_package()
      File "C:UsersGaryRAppDataLocalTemppip-build-ze3qwtjmscipysetup.py", line 262, in setup_package
        setup(**metadata)
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilscore.py", line 135, in setup
        config = configuration()
      File "C:UsersGaryRAppDataLocalTemppip-build-ze3qwtjmscipysetup.py", line 182, in configuration
        config.add_subpackage('scipy')
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilsmisc_util.py", line 1003, in add_subpackage
        caller_level = 2)
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilsmisc_util.py", line 972, in get_subpackage
        caller_level = caller_level + 1)
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilsmisc_util.py", line 909, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "scipysetup.py", line 15, in configuration
        config.add_subpackage('linalg')
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilsmisc_util.py", line 1003, in add_subpackage
        caller_level = 2)
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilsmisc_util.py", line 972, in get_subpackage
        caller_level = caller_level + 1)
      File "c:usersgaryrappdatalocalprogramspythonpython35libsite-packagesnumpydistutilsmisc_util.py", line 909, in _get_configuration_from_setup_py
        config = setup_module.configuration(*args)
      File "scipylinalgsetup.py", line 20, in configuration
        raise NotFoundError('no lapack/blas resources found')
    numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

    ----------------------------------------
Command "c:usersgaryrappdatalocalprogramspythonpython35python.exe -u -c "import setuptools, tokenize;__file__='C:UsersGaryRAppDataLocalTemppip-build-ze3qwtjmscipysetup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:UsersGaryRAppDataLocalTemppip-fywvvyrr-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersGaryRAppDataLocalTemppip-build-ze3qwtjmscipy






You must be logged in to post. Please login or register an account.



Windows sometimes requires you to use a pre-compiled binary. Try scipy from: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

note: you need numpy as well. Can get it from that same source, or try pip install regularly.

If you are not familiar with installing .whl files with pip, check out: https://pythonprogramming.net/using-pip-install-for-python-modules/ about half-way through.

-Harrison 8 years ago

You must be logged in to post. Please login or register an account.