脚本在WinPython中失败,试图导入lapack_til

时间:2016-01-31 22:48:12

标签: python numpy

我正在尝试运行我的客户端提供的脚本,但我无法启动它;它似乎肯定是我的机器上的设置问题,因为它适用于他们。我开始从http://scipy.org/安装WinPython,但我现在得到以下回溯:

Traceback (most recent call last):
  File "pyconsole.py", line 18, in <module>
    import cocomo
  File "pyconsole\cocomo.py", line 13, in <module>
    import grupple
  File "pyconsole\grupple.py", line 4, in <module>
    import matplotlib.mlab as mlab
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\matplotlib\__init__.py", line 134, in <module>
    from matplotlib.rcsetup import (defaultParams,
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\matplotlib\rcsetup.py", line 19, in <module>
    from matplotlib.colors import is_color_like
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\matplotlib\colors.py", line 52, in <module>
    import numpy as np
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\numpy\__init__.py", line 137, in <module>
    import add_newdocs
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\numpy\add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\numpy\lib\__init__.py", line 13, in <module>
    from polynomial import *
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\numpy\lib\polynomial.py", line 17, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\numpy\linalg\__init__.py", line 48, in <module>
    from linalg import *
  File "C:\Users\lab\AppData\Roaming\Python\Python27\site-packages\numpy\linalg\linalg.py", line 23, in <module>
    from numpy.linalg import lapack_lite
ImportError: DLL load failed: The specified module could not be found.

我对解释Python回溯没有信心,但似乎缺少“lapack_lite”?搜索一下看起来令人惊讶的无益;我似乎确定的最好的是它是numpy的一部分?但这很奇怪,因为我开始使用WinPython发行版的原因是预先安装了numpy堆栈,这是开始使用它的最简单方法。

我错过了什么?

谢谢!

1 个答案:

答案 0 :(得分:0)

我认为在Windows下最简单的方法就是简单地安装Anaconda(这可以解决Numpy和Scipy的所有依赖关系)。你可以从这里下载:

https://www.continuum.io/downloads

通过这种方式,您无需滚动浏览有关如何正确获取所有依赖关系的文档页面。

亲切的问候

约翰