user3655574
user3655574

Reputation: 723

Having issues pip installing scipy

I tried installing scipy using pip install scipy, I have tried all installation methods but it gives the error below. 1)I have install numpy in it already 2)I tried downloading from pip install scipy-0.17.1-cp27-none-win_amd64.whl but it says it is not a supported wheel on this platform 3)I tried pip install svn+http://svn.scipy.org/svn/scipy/trunk/#egg=scipy 4)I tried pip install git+https://github.com/scipy/scipy.git

Anyone knows whats wrong?

Thanks

My python version is 2.7.10 My pip version is 8.1.2

Collecting scipy
  Using cached scipy-0.17.1.tar.gz
Building wheels for collected packages: scipy
  Running setup.py bdist_wheel for scipy ... error
  Complete output from command c:\users\user\desktop\python~1\nltk\scripts\pytho
n.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\loc
al\\temp\\pip-build-tvi3uj\\scipy\\setup.py';exec(compile(getattr(tokenize, 'ope
n', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_whee
l -d c:\users\user\appdata\local\temp\tmpw9kyvepip-wheel- --python-tag cp27:
  lapack_opt_info:
  openblas_lapack_info:
    libraries openblas not found in ['c:\\users\\user\\desktop\\python~1\\nltk\\
lib', 'C:\\']
    NOT AVAILABLE

  lapack_mkl_info:
  mkl_info:
    libraries mkl,vml,guide not found in ['c:\\users\\user\\desktop\\python~1\\n
ltk\\lib', 'C:\\']
    NOT AVAILABLE

    NOT AVAILABLE

  atlas_3_10_threads_info:
  Setting PTATLAS=ATLAS
  c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system_i
nfo.py:633: UserWarning: Specified path C:\projects\windows-wheel-builder\atlas-
builds\atlas-3.10.1-sse2-32\lib 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:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system_i
nfo.py:1542: 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:\\users\\user\\desktop\\python~1\\nltk\\li
b', 'C:\\']
    NOT AVAILABLE

  c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system_i
nfo.py:1553: 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:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system_i
nfo.py:1556: 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:\users\user\appdata\local\temp\pip-build-tvi3uj\scipy\setup.py", lin
e 265, in <module>
      setup_package()
    File "c:\users\user\appdata\local\temp\pip-build-tvi3uj\scipy\setup.py", lin
e 262, in setup_package
      setup(**metadata)
    File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\
core.py", line 135, in setup
      config = configuration()
    File "c:\users\user\appdata\local\temp\pip-build-tvi3uj\scipy\setup.py", lin
e 182, in configuration
      config.add_subpackage('scipy')
    File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\
misc_util.py", line 1003, in add_subpackage
      caller_level = 2)
    File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\
misc_util.py", line 972, in get_subpackage
      caller_level = caller_level + 1)
    File "c:\users\user\desktop\python~1\nltk\lib\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 "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\
misc_util.py", line 1003, in add_subpackage
      caller_level = 2)
    File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\
misc_util.py", line 972, in get_subpackage
      caller_level = caller_level + 1)
    File "c:\users\user\desktop\python~1\nltk\lib\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

  ----------------------------------------
  Failed building wheel for scipy
  Running setup.py clean for scipy
Failed to build scipy
Installing collected packages: scipy
  Running setup.py install for scipy ... error
    Complete output from command c:\users\user\desktop\python~1\nltk\scripts\pyt
hon.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\user\\appdata\\l
ocal\\temp\\pip-build-tvi3uj\\scipy\\setup.py';exec(compile(getattr(tokenize, 'o
pen', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install
--record c:\users\user\appdata\local\temp\pip-u5vzf_-record\install-record.txt -
-single-version-externally-managed --compile --install-headers c:\users\user\des
ktop\python~1\nltk\include\site\python2.7\scipy:
    lapack_opt_info:
    openblas_lapack_info:
      libraries openblas not found in ['c:\\users\\user\\desktop\\python~1\\nltk
\\lib', 'C:\\']
      NOT AVAILABLE

    lapack_mkl_info:
    mkl_info:
      libraries mkl,vml,guide not found in ['c:\\users\\user\\desktop\\python~1\
\nltk\\lib', 'C:\\']
      NOT AVAILABLE

      NOT AVAILABLE

    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system
_info.py:633: UserWarning: Specified path C:\projects\windows-wheel-builder\atla
s-builds\atlas-3.10.1-sse2-32\lib 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:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system
_info.py:1542: 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:\\users\\user\\desktop\\python~1\\nltk\\
lib', 'C:\\']
      NOT AVAILABLE

    c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system
_info.py:1553: 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:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutils\system
_info.py:1556: 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:\users\user\appdata\local\temp\pip-build-tvi3uj\scipy\setup.py", l
ine 265, in <module>
        setup_package()
      File "c:\users\user\appdata\local\temp\pip-build-tvi3uj\scipy\setup.py", l
ine 262, in setup_package
        setup(**metadata)
      File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\core.py", line 135, in setup
        config = configuration()
      File "c:\users\user\appdata\local\temp\pip-build-tvi3uj\scipy\setup.py", l
ine 182, in configuration
        config.add_subpackage('scipy')
      File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\misc_util.py", line 1003, in add_subpackage
        caller_level = 2)
      File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\misc_util.py", line 972, in get_subpackage
        caller_level = caller_level + 1)
      File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\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 "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\misc_util.py", line 1003, in add_subpackage
        caller_level = 2)
      File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\misc_util.py", line 972, in get_subpackage
        caller_level = caller_level + 1)
      File "c:\users\user\desktop\python~1\nltk\lib\site-packages\numpy\distutil
s\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 "c:\users\user\desktop\python~1\nltk\scripts\python.exe -u -c "import se
tuptools, tokenize;__file__='c:\\users\\user\\appdata\\local\\temp\\pip-build-tv
i3uj\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).re
ad().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\user\a
ppdata\local\temp\pip-u5vzf_-record\install-record.txt --single-version-external
ly-managed --compile --install-headers c:\users\user\desktop\python~1\nltk\inclu
de\site\python2.7\scipy" failed with error code 1 in c:\users\user\appdata\local
\temp\pip-build-tvi3uj\scipy\

Upvotes: 0

Views: 1074

Answers (1)

Taj  Noah Alagawani
Taj Noah Alagawani

Reputation: 97

Download numpy+mkl wheel from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy. Use the version that is the same as your python version (check using python --version or python -V). Eg. if your python is 3.5.2, download the wheel which shows cp35 Open command prompt and navigate to the folder where you downloaded the wheel. Run the command: pip install [file name of wheel], including the extension (.whl). Download the SciPy wheel from: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy (similar to the step above). As above, pip install [file name of wheel]

Upvotes: 0

Related Questions