尝试导入pymc时出错

时间:2014-06-16 10:14:09

标签: python linux pymc

我使用easy_install pymc命令安装了pymc。我尝试使用import pymc导入包时。

我收到以下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/__init__.py", line 29, in <module>
    from .CommonDeterministics import *
  File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/CommonDeterministics.py", line 21, in <module>
    from .utils import safe_len, stukel_logit, stukel_invlogit, logit, invlogit, value, find_element
  File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/utils.py", line 14, in <module>
    from . import flib
ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory

我正在使用Ubuntu 12.04Python 2.7

这些错误的原因是什么?

1 个答案:

答案 0 :(得分:0)

尝试安装缺少的库:

apt-get install libatlas3-base-dev