2017-08-28 29 views
1

Ich versuche, scipy-Modul in Python (unter Windows) zu installieren. Ich bin den folgenden Befehl in der Befehlszeile ausführen: pip install scipy Zunächst beginnt die Installation es aber dann den folgenden Fehler geben:Kann scipy unter Windows nicht installieren

Collecting scipy 
    Using cached scipy-0.19.1.tar.gz 
Installing collected packages: scipy 
    Running setup.py install for scipy ... error 
    Complete output from command c:\users\george\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\George\\AppData\\Local\\Temp\\pip-build-l2so1w7t\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\George\AppData\Local\Temp\pip-8o57wqud-record\install-record.txt --single-version-externally-managed --compile: 

    Note: if you need reliable uninstall behavior, then install 
    with pip instead of using `setup.py install`: 

     - `pip install .`  (from a git repo or downloaded source 
           release) 
     - `pip install scipy` (last SciPy release on PyPI) 


    lapack_opt_info: 
    lapack_mkl_info: 
     libraries mkl_rt not found in ['c:\\users\\george\\appdata\\local\\programs\\python\\python36-32\\lib', 'C:\\', 'c:\\users\\george\\appdata\\local\\programs\\python\\python36-32\\libs'] 
     NOT AVAILABLE 

    openblas_lapack_info: 
     libraries openblas not found in ['c:\\users\\george\\appdata\\local\\programs\\python\\python36-32\\lib', 'C:\\', 'c:\\users\\george\\appdata\\local\\programs\\python\\python36-32\\libs'] 
     NOT AVAILABLE 

    atlas_3_10_threads_info: 
    Setting PTATLAS=ATLAS 
    c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.10.1-sse2-32\lib is invalid. 
     pre_dirs = system_info.get_paths(self, section, key) 
    <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\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\system_info.py:572: 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. 
     self.calc_info() 
    lapack_info: 
     libraries lapack not found in ['c:\\users\\george\\appdata\\local\\programs\\python\\python36-32\\lib', 'C:\\', 'c:\\users\\george\\appdata\\local\\programs\\python\\python36-32\\libs'] 
     NOT AVAILABLE 

    c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\system_info.py:572: 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. 
     self.calc_info() 
    lapack_src_info: 
     NOT AVAILABLE 

    c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\system_info.py:572: 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. 
     self.calc_info() 
     NOT AVAILABLE 

    Running from scipy source directory. 
    non-existing path in 'scipy\\integrate': 'quadpack.h' 
    Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "C:\Users\George\AppData\Local\Temp\pip-build-l2so1w7t\scipy\setup.py", line 416, in <module> 
     setup_package() 
     File "C:\Users\George\AppData\Local\Temp\pip-build-l2so1w7t\scipy\setup.py", line 412, in setup_package 
     setup(**metadata) 
     File "c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\core.py", line 135, in setup 
     config = configuration() 
     File "C:\Users\George\AppData\Local\Temp\pip-build-l2so1w7t\scipy\setup.py", line 336, in configuration 
     config.add_subpackage('scipy') 
     File "c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage 
     caller_level = 2) 
     File "c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage 
     caller_level = caller_level + 1) 
     File "c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 935, 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\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage 
     caller_level = 2) 
     File "c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage 
     caller_level = caller_level + 1) 
     File "c:\users\george\appdata\local\programs\python\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 935, 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 

Ich habe keine Ahnung, was es bedeutet und haben einige Dinge ausprobiert, aber nichts (ich versuchte) scheint zu funktionieren. Wenn es möglich ist, schlagen Sie bitte die Lösung vor.

+1

Diese Frage ausgeführt wird gefragt, wie> 100 mal hier und die Antwort ist immer die gleiche. Wie die anderen, haben Sie es versäumt, die offizielle Dokumentation zu lesen, die besagt: Installieren Sie scipy nicht mit Pip auf Windows (außer Sie wissen, was Sie tun). – sascha

+0

Einfach [Anaconda installieren] (https://www.anaconda.com/download/) und damit fertig sein. – saintsfan342000

+0

@ saintsfan342000 Das scheint wie eine gute Lösung, aber die Sache ist, ich versuche Kurse in Python und einige von ihnen sind 3. * und einige 2. * so muss ich ständig die Version ändern, die mit Anaconda ziemlich ermüdend ist. – Banned

Antwort

3

Wie der Fehler sagt, fehlen einige Abhängigkeiten. Versuchen Sie, von einem dieser vorkompilierte Binaries für Windows zu installieren: http://www.lfd.uci.edu/~gohlke/pythonlibs/

für Ihre Version von Python die .whl entsprechende Datei herunterladen dann pip install <package_name>.whl

+0

Es heißt, dass scipy kein unterstütztes Rad auf dieser Plattform ist. – Banned

+2

Stellen Sie sicher, dass Sie die richtige Datei für Ihre Python-Version auswählen. Wenn Sie Python 3.5.x mit einer 32-Bit-Version des Interpreters verwenden (die Standard-Python-Installation ist 32 Bit), dann brauchen Sie diese: scipy-0.19.1-cp35-cp35m-win32.whl –

+0

Ich benutze 64 Bit-Version ein Python 3.6, also habe ich scipy-0.19.1-cp36-cp36m-win_amd64.whl - diese heruntergeladen. – Banned

Verwandte Themen