侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

安装SciPy和Matplotlib报错

2023-11-28 星期二 / 0 评论 / 0 点赞 / 40 阅读 / 4648 字

我的电脑Windows7 64位。安装scipy时报错: >python setup.py installNote: if you need reliable uninstall behavior,

我的电脑Windows7 64位。安装scipy时报错:

>python setup.py installNote: if you need reliable uninstall behavior, then installwith 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 ['D://app//Python27//lib', 'C://', 'D://app//Python27//libs']  NOT AVAILABLE...    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

安装matplotlib也报错:

>python setup.py build============================================================================Edit setup.cfg to change the build optionsBUILDING MATPLOTLIB            matplotlib: yes [2.0.0]                python: yes [2.7.8 (default, Jun 30 2014, 16:08:48) [MSC                        v.1500 64 bit (AMD64)]]              platform: yes [win32]REQUIRED DEPENDENCIES AND EXTENSIONS                 numpy: yes [version 1.12.0]                   six: yes [using six version 1.10.0]              dateutil: yes [using dateutil version 2.5.3]           functools32: yes [functools32 was not found. It is required                        forPython versions prior to 3.2]          subprocess32: yes [subprocess32 was not found. It used  for Python                        versions prior to 3.2 to improves functionality on                        Linux and OSX]                  pytz: yes [using pytz version 2016.6.1]                cycler: yes [cycler was not found. pip will attempt to                        install it after matplotlib.]               tornado: yes [using tornado version 4.3]             pyparsing: yes [pyparsing was not found. It is required for                        mathtext support. pip/easy_install may attempt to                        install it after matplotlib.]                libagg: yes [pkg-config information for 'libagg' could not                        be found. Using local copy.]              freetype: no  [The C/C++ header for freetype (ft2build.h)                        could not be found.  You may need to install the                        development package.]                   png: no  [The C/C++ header for png (png.h) could not be                        found.  You may need to install the development                        package.]                 qhull: yes [pkg-config information for 'qhull' could not be                        found. Using local copy.]OPTIONAL SUBPACKAGES           sample_data: yes [installing]              toolkits: yes [installing]                 tests: no  [skipping due to configuration]        toolkits_tests: no  [skipping due to configuration]OPTIONAL BACKEND EXTENSIONS                macosx: no  [Mac OS-X only]                qt5agg: no  [PyQt5 not found]                qt4agg: yes [installing, Qt: 4.8.6, PyQt: 4.8.6; PySide not                        found]               gtk3agg: no  [Requires pygobject to be installed.]             gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]                gtkagg: no  [Requires pygtk]                 tkagg: yes [installing; run-time loading from Python Tcl /                        Tk]                 wxagg: no  [requires wxPython]                   gtk: no  [Requires pygtk]                   agg: yes [installing]                 cairo: no  [cairocffi or pycairo not found]             windowing: yes [installing]OPTIONAL LATEX DEPENDENCIES                dvipng: no           ghostscript: no                 latex: no               pdftops: noOPTIONAL PACKAGE DATA                  dlls: no  [skipping due to configuration]============================================================================                        * The following required packages can not be built:                        * freetype, png

目前解决方法:安装非官方的numpy,scipy和matplotlib。

地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/

下载 numpy-1.12.0+mkl-cp27-cp27m-win_amd64.whl , scipy-0.18.1-cp27-cp27m-win_amd64.whl 和 matplotlib-2.0.0-cp27-cp27m-win_amd64.whl 。然后进入文件所在目录,使用pip安装即可。

pip install numpy-1.12.0+mkl-cp27-cp27m-win_amd64.whlpip install scipy-0.18.1-cp27-cp27m-win_amd64.whlpip install matplotlib-2.0.0-cp27-cp27m-win_amd64.whl

 

广告 广告

评论区