matplotlib fatal error ft2

Anna Christine

I have installed pythonxy on Windows 7 and an error occured after I ran

from pylab import * 

which seemed to come from matplotlib, connected to the ft2font module. I tried to reinstall matplotlib by downloading it from https://pypi.python.org/pypi/matplotlib/1.1.0 and running

python setup.py install 

The installation aborts with the message

In file included from src/ft2font.cpp:3:0:
src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory
#include <ft2build.h>
                  ^
compilation terminated.
error: command 'gcc' failed with exit status 1

Can somebody help me with this?

EDIT: The answer below might still help somebody (for me even more errors occured and in the end I installed the Oracle Virtual Box. Now I run Ubuntu in the Virtual Box and everything works fine : ))

sleepycal

You need to install the dev libraries for "freetype2", and doing so depends on how you've got your local environment configured.

This is explained in more detail here;

http://gnuwin32.sourceforge.net/packages/freetype.htm

http://www.freetype.org/download.html

It would also appear a similar question is answered here;

Visual studio 2010 no such file

However this can be a tricky process and matplotlib recommend that Windows users use the "Enthought Edition" of Python which has many of these packages preinstalled;

http://matplotlib.org/users/installing.html#installing-on-windows

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

matplotlib致命错误ft2

来自分类Dev

Matplotlib导入错误ft2font

来自分类Dev

Matplotlib导入错误ft2font

来自分类Dev

How to print fatal error in code editor?

来自分类Dev

Fatal error: Cannot use isset() on the result of an expression

来自分类Dev

Taking a datetime field into primary key throws fatal error

来自分类Dev

Fatal Error: Array Index out of range in Swift Xcode6

来自分类Dev

PDO - Fatal error: Call to a member function fetch() on a non-object

来自分类Dev

WatchOS 2 App无法在带有dyld_fatal_error的设备上启动,但未加载我的框架库:找不到图像

来自分类Dev

.NET没有概念性(Fatal-)Error异常类型的设计原因?

来自分类Dev

Error when using SourceTree with Git: 'Summary' failed with code 128: fatal: unable to read tree

来自分类Dev

PHP Fatal error: Call to a member function find() on a non-object however my function work

来自分类Dev

fatal error: unexpectedly found nil while unwrapping an Optional value in Swift when tried to parse JSON

来自分类Dev

使用swift更新到Xcode 6 beta 4后出现dyld_fatal_error

来自分类Dev

Fatal error: Call to a member function check_capabilities() on a non-object

来自分类Dev

Catchable Fatal Error: Object of class Proxies\__CG__\AppBundle\Entity\Ticket could not be converted to string

来自分类Dev

.NET没有概念性(Fatal-)Error异常类型的设计原因?

来自分类Dev

戴尔更新后出现蓝屏(错误代码:PNP_DETECTED_FATAL_ERROR)

来自分类Dev

Symfony Catchable Fatal Error: 类 DataBundle\Entity\Location 的对象无法转换为字符串

来自分类Dev

Slony错误,复制Postgres-Slonik:PGRES_FATAL_ERROR加载'$ libdir / slony1_funcs.2.2.0

来自分类Dev

编码时,我得到 Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value any solution

来自分类Dev

使用matplotlib的2D像素图

来自分类Dev

在matplotlib中绘制2D函数

来自分类Dev

matplotlib中的2D直方图比例

来自分类Dev

matplotlib多个重叠xlabels在2级

来自分类Dev

python matplotlib f(x ^ 2)图

来自分类Dev

matplotlib:分段绘制hist2d

来自分类Dev

Python,Matplotlib:绘制2Dline

来自分类Dev

AWS EC2错误安装matplotlib

Related 相关文章

  1. 1

    matplotlib致命错误ft2

  2. 2

    Matplotlib导入错误ft2font

  3. 3

    Matplotlib导入错误ft2font

  4. 4

    How to print fatal error in code editor?

  5. 5

    Fatal error: Cannot use isset() on the result of an expression

  6. 6

    Taking a datetime field into primary key throws fatal error

  7. 7

    Fatal Error: Array Index out of range in Swift Xcode6

  8. 8

    PDO - Fatal error: Call to a member function fetch() on a non-object

  9. 9

    WatchOS 2 App无法在带有dyld_fatal_error的设备上启动,但未加载我的框架库:找不到图像

  10. 10

    .NET没有概念性(Fatal-)Error异常类型的设计原因?

  11. 11

    Error when using SourceTree with Git: 'Summary' failed with code 128: fatal: unable to read tree

  12. 12

    PHP Fatal error: Call to a member function find() on a non-object however my function work

  13. 13

    fatal error: unexpectedly found nil while unwrapping an Optional value in Swift when tried to parse JSON

  14. 14

    使用swift更新到Xcode 6 beta 4后出现dyld_fatal_error

  15. 15

    Fatal error: Call to a member function check_capabilities() on a non-object

  16. 16

    Catchable Fatal Error: Object of class Proxies\__CG__\AppBundle\Entity\Ticket could not be converted to string

  17. 17

    .NET没有概念性(Fatal-)Error异常类型的设计原因?

  18. 18

    戴尔更新后出现蓝屏(错误代码:PNP_DETECTED_FATAL_ERROR)

  19. 19

    Symfony Catchable Fatal Error: 类 DataBundle\Entity\Location 的对象无法转换为字符串

  20. 20

    Slony错误,复制Postgres-Slonik:PGRES_FATAL_ERROR加载'$ libdir / slony1_funcs.2.2.0

  21. 21

    编码时,我得到 Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value any solution

  22. 22

    使用matplotlib的2D像素图

  23. 23

    在matplotlib中绘制2D函数

  24. 24

    matplotlib中的2D直方图比例

  25. 25

    matplotlib多个重叠xlabels在2级

  26. 26

    python matplotlib f(x ^ 2)图

  27. 27

    matplotlib:分段绘制hist2d

  28. 28

    Python,Matplotlib:绘制2Dline

  29. 29

    AWS EC2错误安装matplotlib

热门标签

归档