我使用
在 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
最佳答案
尝试单独安装 patsy。
$ pip install patsy
$ pip install ggplot
$ python -c "from ggplot import *"
关于python - 在 OSX 上安装 ggplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25545687/