我使用
在anaconda上完美地安装了ggplotpip 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
答案 0 :(得分:2)
尝试在其上安装patsy。
$ pip install patsy
$ pip install ggplot
$ python -c "from ggplot import *"