[英]Issue with installing matplotlib in windows
I am trying to install matplotlib with windows but i can t do it. 我正在尝试用Windows安装matplotlib,但我做不到。 I am a beginner with python so my mistake could be basic and/or my question silly but i can t find an answer anywhere.
我是python的初学者,所以我的错误可能是基本的和/或我的问题很愚蠢,但我在任何地方都找不到答案。
I went to the matplotlib website and install all the dependencies using easy_install. 我去了matplotlib网站,并使用easy_install安装了所有依赖项。 i am having issue with freetype and png.
我在使用freetype和png时遇到问题。 I am copying below the end of the message that shows up when i type "easy_install matplotlib"
我正在复制键入“ 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
As you can see i have 2 packages missing and i don t know how to install them. 如您所见,我缺少2个软件包,我不知道如何安装它们。 I have try to download them myself and putting them in the "sites-packages" subfolder of my python folder but nothing seems to work.
我已经尝试自己下载它们并将其放在我的python文件夹的“ sites-packages”子文件夹中,但似乎无济于事。
What you are trying to do requires all kinds of compilers and headers to be installed, as these modules rely on doing work in C which needs to be compiled for your system. 您要执行的操作需要安装各种编译器和头文件,因为这些模块依赖于C语言的工作,而C语言需要针对您的系统进行编译。 Please consider installing the anaconda python distribution;
请考虑安装anaconda python发行版; it is free and has all the precompiled packages to do STEM work with python.
它是免费的,并且具有使用python进行STEM工作的所有预编译软件包。
They make a 2.7 and 3.5 version, I recommend the 3.5 but that's just me :-) Good luck, hope you can get it working! 他们制作了2.7和3.5版本,我推荐3.5版本,但那只是我自己:-)祝您好运,希望您可以使用它!
https://www.continuum.io/downloads#_windows https://www.continuum.io/downloads#_windows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.