早上好: 我试图在我的系统中安装scipy,并得到以下错误。任何人都可以帮我解决这个问题吗?
PS C:\ Windows> pip安装scipy 收集scipy 正在下载scipy-0.19.0.zip(15.3MB) 100%|████████████████████████████████| 15.3MB 97kB / s 安装收集的软件包:scipy 运行setup.py安装scipy ...错误 命令完成输出" c:\ program files(x86)\ python36-32 \ python.exe" -u -c"导入setuptools,tokenize; 文件 =' C:\ Users \ asekhar \ AppData \ Local \ Te mp \ pip-build-vewzf1v9 \ scipy \ setup.py'; f = getattr(tokenize,' open',open)(文件); code = f.read ().replace(' \ r \ n',' \ n'); f.close(); exec(编译(代码,文件,& #39; exe文件 C&#39))" install --record C:\ Users \ asekhar \ AppData \ Local \ Temp \ pip-02ml9lzd-record \ install-record.txt --single-version-external-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:\\program files (x86)\\python36-32\\lib', 'C:\\', 'c:\\program files (x86)\\python36-32\\libs']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['c:\\program files (x86)\\python36-32\\lib', 'C:\\', 'c:\\program files (x86)\\python36-32\\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-bui
lder \ atlas-builds \ atlas-3.10.1-sse2-32 \ lib无效。 pre_dirs = system_info.get_paths(self,section,key) 不可用
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:\program files (x86)\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:\\program files (x86)\\python36-32\\lib', 'C:\\', 'c:\\program files (x86)\\python36-32\\libs']
NOT AVAILABLE
c:\program files (x86)\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:\program files (x86)\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\asekhar\AppData\Local\Temp\pip-build-vewzf1v9\scipy\setup.py", line 416, in <module>
setup_package()
File "C:\Users\asekhar\AppData\Local\Temp\pip-build-vewzf1v9\scipy\setup.py", line 412, in setup_package
setup(**metadata)
File "c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\asekhar\AppData\Local\Temp\pip-build-vewzf1v9\scipy\setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 907, 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:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "c:\program files (x86)\python36-32\lib\site-packages\numpy\distutils\misc_util.py", line 907, 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:\ program files(x86)\ python36-32 \ python.exe&#34; -u -c&#34;导入setuptools,tokenize; 文件 =&#39; C:\ Users \ asekhar \ AppData \ Local \ Temp \ pip-build-vewzf1v9 \ scipy \ setup.py&#39;; f = getattr(tokenize,&#39; open&#39;,open)(文件); code = f.read()。replace(&#39 ; \ r \ n&#39;,&#39; \ n&#39;); f.close(); exec(编译(代码,文件,&#39; exec&#39;) )&#34;安装 - 记录C :\ Users \ asekhar \ AppData \ Local \ Temp \ pip-02ml9lzd-record \ install-record.txt --single-version-external-managed --compile&#34;在C:\ Users \ asekha中失败并显示错误代码1 r \应用程序数据\本地\ TEMP \ PIP-集结vewzf1v9 \ SciPy的\
答案 0 :(得分:1)
我在Windows上使用py35和py35。而不是编译它是一个好主意安装预制车轮。
非官方但可靠的构建可从 http://www.lfd.uci.edu/~gohlke/pythonlibs/
对于py36,win32你需要numpy + mkl然后scipy
下载车轮。
numpy的-1.12.1 + MKL-CP36-cp36m-win32.whl
SciPy的-0.19.0-CP36-cp36m-win32.whl
下载后。
pip install numpy-1.12.1 + mkl-cp36-cp36m-win32.whl
pip install scipy-0.19.0-cp36-cp36m-win32.whl
答案 1 :(得分:-1)
在Windows上安装此类软件包的最简单方法是下载Anaconda:
https://www.continuum.io/downloads
它将在Python中安装SciPy以及许多其他有用的科学计算软件包。我从来没有遇到过在Windows上安装Anaconda的问题,而且几乎总是在尝试安装scipy时遇到问题。