Answer the question
In order to leave comments, you need to log in
How to fix the error and install Scipy for python 2.7.11?
I'm taking machine learning courses on Coursera. Can't install Scipy. Although I installed it three months ago, though in Python 3. How to solve this problem or in which direction to fly?
C:\Documents and Settings\User>pip install scipy==0.17.1
Collecting scipy==0.17.1
Downloading scipy-0.17.1.tar.gz (12.4MB)
100% |################################| 12.4MB 18kB/s
Installing collected packages: scipy
Running setup.py install for scipy ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools
, tokenize;__file__='c:\\windows\\temp\\pip-build-4qf8km\\scipy\\setup.py';exec(
compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record c:\windows\temp\pip-7xnvzq-record\install-r
ecord.txt --single-version-externally-managed --compile:
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python2
7\\libs']
NOT AVAILABLE
lapack_mkl_info:
libraries mkl_rt not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python27\
\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
c:\python27\lib\site-packages\numpy\distutils\system_info.py:639: UserWarnin
g: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\at
las-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:\python27\lib\site-packages\numpy\distutils\system_info.py:1532: UserWarni
ng:
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:\\python27\\lib', 'C:\\', 'c:\\python27\
\libs']
NOT AVAILABLE
c:\python27\lib\site-packages\numpy\distutils\system_info.py:1543: UserWarni
ng:
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:\python27\lib\site-packages\numpy\distutils\system_info.py:1546: UserWarni
ng:
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:\windows\temp\pip-build-4qf8km\scipy\setup.py", line 265, in <modu
le>
setup_package()
File "c:\windows\temp\pip-build-4qf8km\scipy\setup.py", line 262, in setup
_package
setup(**metadata)
File "c:\python27\lib\site-packages\numpy\distutils\core.py", line 135, in
setup
config = configuration()
File "c:\windows\temp\pip-build-4qf8km\scipy\setup.py", line 182, in confi
guration
config.add_subpackage('scipy')
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 10
00, in add_subpackage
caller_level = 2)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 96
9, in get_subpackage
caller_level = caller_level + 1)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 90
6, 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:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 10
00, in add_subpackage
caller_level = 2)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 96
9, in get_subpackage
caller_level = caller_level + 1)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 90
6, 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:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\windows\\temp\\pip-build-4qf8km\\scipy\\setup.py';exec(compile(getattr(tokenize
, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" inst
all --record c:\windows\temp\pip-7xnvzq-record\install-record.txt --single-versi
on-externally-managed --compile" failed with error code 1 in c:\windows\temp\pip
-build-4qf8km\scipy\
C:\Documents and Settings\User>pip list
backports-abc (0.4)
backports.shutil-get-terminal-size (1.0.0)
certifi (2016.9.26)
colorama (0.3.7)
configparser (3.5.0)
cycler (0.10.0)
decorator (4.0.10)
entrypoints (0.2.2)
enum34 (1.1.6)
functools32 (3.2.3.post2)
ipykernel (4.5.0)
ipython (5.1.0)
ipython-genutils (0.1.0)
ipywidgets (5.2.2)
Jinja2 (2.8)
jsonschema (2.5.1)
jupyter (1.0.0)
jupyter-client (4.4.0)
jupyter-console (5.0.0)
jupyter-core (4.2.0)
MarkupSafe (0.23)
matplotlib (1.5.3)
mistune (0.7.3)
nbconvert (4.2.0)
nbformat (4.1.0)
notebook (4.2.3)
numpy (1.11.2)
pandas (0.19.0)
pathlib2 (2.1.0)
pickleshare (0.7.4)
pip (8.1.2)
prompt-toolkit (1.0.7)
Pygments (2.1.3)
pyparsing (2.1.10)
python-dateutil (2.5.3)
pytz (2016.7)
pyzmq (16.0.0)
qtconsole (4.2.1)
setuptools (28.3.0)
simplegeneric (0.8.1)
singledispatch (3.4.0.3)
six (1.10.0)
tornado (4.4.2)
traitlets (4.3.1)
wcwidth (0.1.7)
widgetsnbextension (1.2.6)
win-unicode-console (0.5)
C:\Documents and Settings\User>python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (
Intel)] on win32
Answer the question
In order to leave comments, you need to log in
Installing packages for data analysis under Windows via pip is a thankless task. It's better to either use a virtual machine, or something like an anaconda
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question