安装 statsmodels 时发生 SandboxViolation 错误的 easy_ins

2024-09-28 22:25:15 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在fedora19系统上安装statsmodelsPython库。我使用easy_install如下:

easy_install -U statsmodels

但安装时出现以下错误:

^{pr2}$

这里怎么了?在


Tags: install系统错误easystatsmodelspr2fedora19statsmodelspython
1条回答
网友
1楼 · 发布于 2024-09-28 22:25:15

在设置.py在源代码中,添加

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

导入操作系统后 当我调用

^{pr2}$

从statsmodels目录。在

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。所以我唯一要做的就是安装pasty。使用

easy_install  upgrade patsy

然后我可以用正常的方式从源代码安装statsmodels。在

相关问题 更多 >