-1

In this thread:

How to install matplotlib with Python3.2

the following is adviced:

git clone https://github.com/matplotlib/matplotlib

cd matplotlib

python3 setup.py build

sudo python3 setup.py install

but this does not work for me, as I get:

  • The following required packages can not be built:
  • freetype

I do not know what freetype is, but it does not seem to be in aptitude or pip.

I found the sources here: https://github.com/rougier/freetype-py

but installing failed:

byte-compiling /usr/local/lib/python3.2/dist-packages/freetype/__init__.py to

init.cpython-32.pyc File "/usr/local/lib/python3.2/dist-packages/freetype/init.py", line 39 raise RuntimeError, 'Freetype library not found' ^ SyntaxError: invalid syntax

but apparently that was to be expected, as freetype does not seem to be ok with python3.2:

https://code.google.com/p/freetype-py/issues/detail?id=11

As it seems to me other people manage to use matplotlib with python3, anything I am missing ?

ps : this did not work : `Sudo pip install matplotlib` fails to find freetype headers. [OS X Mavericks / 10.9]

Community
  • 1
  • 1
Vince
  • 3,979
  • 10
  • 41
  • 69

1 Answers1

0

Found the issue. My mistake was to look simply to look for a package called "freetype" instead of "libfreetype".

https://launchpad.net/ubuntu/+source/freetype

Vince
  • 3,979
  • 10
  • 41
  • 69