Skip to content

Commit 482e56c

Browse files
committed
Add Mac OS X PIL installation instructions
1 parent bbb1c2e commit 482e56c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/scenarios/imaging.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,22 @@ Ubuntu 11.04
3535
Installing on Mac OS X
3636
~~~~~~~~~~~~~~~~~~~~~~
3737

38-
.. todo::
39-
Notes on installing on Mac OS X
38+
PIP doesn't know about the Mac OS X Freetype paths. To rectify that:
39+
40+
.. code-block:: bash
41+
42+
$ ln -s /usr/X11/include/freetype2 /usr/local/include/
43+
$ ln -s /usr/X11/include/ft2build.h /usr/local/include/
44+
$ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/
45+
$ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.dylib
46+
47+
then:
48+
49+
.. code-block:: bash
50+
51+
$ brew install libjpeg
52+
$ pip install PIL
53+
4054
4155
Installing on Windows
4256
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)