我尝试在Fedora 19系统上安装statsmodels
Python库。我使用easy_install
如下:
easy_install -U statsmodels
但是我在安装时遇到以下错误:
error: SandboxViolation: os.open('/root/.matplotlib/tmpvjSAwn', 131266, 384) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
这里有什么问题?
答案 0 :(得分:2)
在source中的setup.py中,添加
os.environ["MPLCONFIGDIR"] = "."
导入os后然后当我调用
时出现以下错误python setup.py install
来自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")
系统中缺少糊状物。所以我唯一要做的就是安装粘贴。使用
easy_install --upgrade patsy
然后我可以正常方式从源安装statsmodels。