Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Edit</strong>: IMHO virtualenv and virtualenvwrapper have now been largely supplanted by the superb combination of <a href="https://github.com/pyenv/pyenv" rel="nofollow noreferrer">pyenv</a> and <a href="https://docs.pipenv.org/" rel="nofollow noreferrer">pipenv</a> which combine to provide wonderfully isolated python version and dependency management. It makes it worth considering setting up dummy projects even if you want to just play around with various python packages. Dependencies are tracked stably and pipenv includes functionality for checking package updates and security issues. I'd highly recommend a switchover.</p> <hr> <p>Consider managing your python packages in dedicated virtualenvs. You can install any non-python dependencies (freetype which is required by matplotlib) using Homebrew, but you may ultimately have fewer headaches managing your python packages using pip within a <a href="http://www.virtualenv.org/en/latest/virtualenv.html" rel="nofollow noreferrer">virtualenv</a></p> <p>If you are using the system python, you can install matplotlib like so. I'm assuming you want to place the virtualenv at top level of your home directory, so the first line in the listing below may be different if you want to create the virtualenv elsewhere and you'll need to adjust the remaining lines accordingly.</p> <pre><code>cd ~ sudo easy install pip sudo pip install virtualenv brew install pkg-config freetype virtualenv matplotlibenvironment source matplotlibenvironment/bin/activate </code></pre> <p>If <code>/usr/local/include/freetype2</code> exists but <code>/usr/local/include/freetype</code> doesn't you will need to create a symlink from freetype2 to freetype to prevent errors when installing the matplotlib package</p> <pre><code>cd /usr/local/include ln -s freetype2 freetype </code></pre> <p>Finally, you can install matplotlib using pip. pip install matplotlib </p> <p>Any applications run from the previously created virtualenv will be able to import matplotlib.</p> <p>Should you decide to use virtualenvs extensively, you may want to take a look at <a href="http://virtualenvwrapper.readthedocs.org/en/latest/" rel="nofollow noreferrer">virtualenvwrapper</a> which provide very nice functionality for managing multiple virtualenvs and switching between them.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload