在OSX上安装ggplot
我在Anaconda上顺利安装了ggplot,使用的是
pip install ggplot
但是,如果我尝试用非Anaconda的pip来安装它,我就会遇到:
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
1 个回答
2
试着单独安装patsy这个库。
$ pip install patsy
$ pip install ggplot
$ python -c "from ggplot import *"