Search code examples
pythonmacospipanacondapython-ggplot

Installing ggplot on OSX


I installed ggplot flawlessly on anaconda using

pip install ggplot 

However, if I try to install it with my non-anaconda pip I get:

ImportError: statsmodels requires patsy. http://patsy.readthedocs.org

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/n4/l3cggyqs1jj1_ltxl8v3dljh0000gn/T/pip_build_Leo/statsmodels
Storing debug log for failure in /var/folders/n4/l3cggyqs1jj1_ltxl8v3dljh0000gn/T/tmpfwsnyy

Solution

  • Try installing patsy on it's own.

    $ pip install patsy
    $ pip install ggplot
    $ python -c "from ggplot import *"