我无法使用pip安装scipy库并获取错误
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\ayush ghai\appdata\local\programs\python\python36\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\AYUSHG~1\\AppData\\Local\\Temp\\pip-build-61f5db76\\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\AYUSHG~1\AppData\Local\Temp\pip-p2803zdd-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\\ayush ghai\\appdata\\local\\programs\\python\\python36\\lib', 'C:\\', 'c:\\users\\ayush ghai\\appdata\\local\\programs\\python\\python36\\libs']
NOT AVAILABLE
openblas_lapack_info:
c:\users\ayush ghai\appdata\local\programs\python\python36\lib\site-packages\numpy\distutils\system_info.py:655: UserWarning: Specified path c:\opt\64\lib is invalid.
return self.get_paths(self.section, key)
libraries libopenblas_v0.2.20_mingwpy not found in []
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries tatlas,tatlas not found in C:\
libraries lapack_atlas not found in C:\
libraries tatlas,tatlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries satlas,satlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries satlas,satlas not found in C:\
libraries lapack_atlas not found in C:\
libraries satlas,satlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
libraries lapack_atlas not found in c:\users\ayush ghai\appdata\local\programs\python\python36\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
c:\users\ayush ghai\appdata\local\programs\python\python36\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\\ayush ghai\\appdata\\local\\programs\\python\\python36\\lib', 'C:\\', 'c:\\users\\ayush ghai\\appdata\\local\\programs\\python\\python36\\libs']
NOT AVAILABLE
c:\users\ayush ghai\appdata\local\programs\python\python36\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\ayush ghai\appdata\local\programs\python\python36\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\AYUSHG~1\AppData\Local\Temp\pip-build-61f5db76\scipy\setup.py", line 416, in <module>
setup_package()
File "C:\Users\AYUSHG~1\AppData\Local\Temp\pip-build-61f5db76\scipy\setup.py", line 412, in setup_package
setup(**metadata)
File "c:\users\ayush ghai\appdata\local\programs\python\python36\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\AYUSHG~1\AppData\Local\Temp\pip-build-61f5db76\scipy\setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "c:\users\ayush ghai\appdata\local\programs\python\python36\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage
caller_level = 2)
File "c:\users\ayush ghai\appdata\local\programs\python\python36\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\ayush ghai\appdata\local\programs\python\python36\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\ayush ghai\appdata\local\programs\python\python36\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage
caller_level = 2)
File "c:\users\ayush ghai\appdata\local\programs\python\python36\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\ayush ghai\appdata\local\programs\python\python36\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
----------------------------------------
命令&#34;&#34; c:\ users \ ayush 加伊\应用程序数据\本地\程序\蟒\ python36 \ python.exe&#34; -u -c&#34;导入 setuptools的, 标记化; __文件__ =&#39; C:\用户\ AYUSHG〜1 \应用程序数据\本地\ TEMP \ PIP-集结61f5db76 \ SciPy的\ setup.py&#39 ;; F = GETATTR(标记化, &#39;打开&#39;,打开)(__ file __); code = f.read()。replace(&#39; \ r \ n&#39;, &#39; \ n&#39;); f.close(); exec(编译(代码,__ file __,&#39; exec&#39;))&#34;安装 --record C:\ Users \ AYUSHG~1 \ AppData \ Local \ Temp \ pip-p2803zdd-record \ install-record.txt --single-version-external-managed --compile&#34;在C:\ Users \ AYUSHG~1 \ AppData \ Local \ Temp \ pip-build-61f5db76 \ scipy \
中失败,错误代码为1
答案 0 :(得分:0)
我在python3.6中通过pip install命令从http://www.lfd.uci.edu/~gohlke/pythonlibs/的whl文件在Windows 10中安装了scipy。