forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.osx
31 lines (20 loc) · 1.02 KB
/
README.osx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Building mpl on OSX is sometimes a nightmare because of all the
different types of zlib, png and freetype that may be on your system.
For developers who want to build matplotlib from source, the recommended and
supported way to build is to use a third-party package manager to install the
required dependencies, and then install matplotlib from source using the
setup.py script. Two widely used package managers are homebrew, and
MacPorts. The following example illustrates how to install libpng and freetype
using brew:
Example usage::
brew install libpng freetype pkg-config
If you are using MacPorts, execute the following instead:
Example usage::
port install libpng freetype pkgconfig
To install matplotlib from source, execute:
Example usage::
python setup.py install
Note that your environment is somewhat important. Some conda users have
found that, to run the tests, their PYTHONPATH must include
/path/to/anaconda/.../site-packages and their DYLD_FALLBACK_LIBRARY_PATH
must include /path/to/anaconda/lib.