繁体   English   中英

在Windows中安装Matplotlib的问题

[英]Issue with installing matplotlib in windows

我正在尝试用Windows安装matplotlib,但我做不到。 我是python的初学者,所以我的错误可能是基本的和/或我的问题很愚蠢,但我在任何地方都找不到答案。

我去了matplotlib网站,并使用easy_install安装了所有依赖项。 我在使用freetype和png时遇到问题。 我正在复制键入“ easy_install matplotlib”时显示的消息末尾

    gtkagg: no  [Requires pygtk]
                 tkagg: no  [The C/C++ header for Tk (tk.h) could not be
                        found.  You may need to install the development
                        package.]
                 wxagg: no  [requires wxPython]
                   gtk: no  [Requires pygtk]
                   agg: yes [installing]
                 cairo: no  [cairocffi or pycairo not found]
             windowing: yes [installing, installing]
OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: no
                 latex: no
               pdftops: no
OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]
============================================================================
                        * The following required packages can not be built:
                        * freetype, png
error: Setup script exited with 1

如您所见,我缺少2个软件包,我不知道如何安装它们。 我已经尝试自己下载它们并将其放在我的python文件夹的“ sites-packages”子文件夹中,但似乎无济于事。

您要执行的操作需要安装各种编译器和头文件,因为这些模块依赖于C语言的工作,而C语言需要针对您的系统进行编译。 请考虑安装anaconda python发行版; 它是免费的,并且具有使用python进行STEM工作的所有预编译软件包。

他们制作了2.7和3.5版本,我推荐3.5版本,但那只是我自己:-)祝您好运,希望您可以使用它!

https://www.continuum.io/downloads#_windows

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM