没找到Python linalg包?

时间:2014-03-05 14:34:20

标签: python scipy

我是python安装的新手,并且遇到了一个简单的脚本尝试读取包中遇到了以下问题。

:> python interptime.py
Traceback (most recent call last):
  File "interptime.py", line 3, in <module>
    from scipy import interpolate
  File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/interpolate/__init__.py", line 154, in <module>
    from rbf import Rbf
  File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/interpolate/rbf.py", line 49, in <module>
    from scipy import linalg
  File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/__init__.py", line 133, in <module>
    from basic import *
  File "/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/basic.py", line 14, in <module>
    from scipy.linalg import calc_lwork
ImportError: dlopen(/usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/calc_lwork.so, 2): Symbol not found: _ilaenv_
  Referenced from: /usr/local/scisoft/packages/python/lib/python2.7/site-packages/scipy/linalg/calc_lwork.so
  Expected in: /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate

这是interptime.py脚本的开头:

import numpy as np
import matplotlib.pyplot as plt
from scipy import interpolate
...

如何告诉python在哪里查找scipy / linalg包?

1 个答案:

答案 0 :(得分:-2)

Python在PYTHON_PATH环境变量中查找已安装的包。但我不确定这是不是你的问题。错误消息表明共享对象版本存在问题...我建议您在控制台上使用pip install命令安装所需的一切...