SandboxViolation error when installing statsmodels with easy_install

痞子三分冷 提交于 2019-12-05 18:53:37

In the setup.py in source, add

os.environ["MPLCONFIGDIR"] = "." 

after import os Then I got the following error when I called the

python setup.py install 

from the statsmodels directory.

Traceback (most recent call last):
  File "setup.py", line 465, in <module>
    check_dependency_versions(min_versions)
  File "setup.py", line 124, in check_dependency_versions
    raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")

pasty was missing in the system. So only thing I had to do was installing pasty. using

easy_install --upgrade patsy

then I could install statsmodels from the source in the normal way.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!