【问题标题】:Upgrading numpy+MKL library升级numpy+MKL库
【发布时间】:2018-08-04 04:39:37
【问题描述】:

当我尝试运行我的程序时,我得到了这个错误

from . import _tifffile
Runtime error: module compiled against API version 0xb but this version of numpy is 0xa

当我使用

升级我的 numpy 安装时

pip install numpy --upgrade

numpy 版本匹配,但更新后的 numpy 库替换了我的 numpy+MKL,我收到此错误

> from numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl
> ImportError: cannot import name 'NUMPY_MKL'

如何升级我的 numpy_MKL 库?

【问题讨论】:

  • 你在 Windows 上吗?

标签: python-3.x numpy pip intel-mkl


【解决方案1】:

请在此处参考我对另一个问题的回答:RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb 并升级到熊猫版本 0.21.0 pip install pandas==0.21.0 并再次运行您的测试。

但是,如果您使用的是 Windows,请尝试从此处下载二进制文件:https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy 并使用pip 安装它并再次运行您的测试。 不幸的是,我没有 Windows 机器来验证这一点。

【讨论】:

    猜你喜欢
    • 2017-09-05
    • 2015-04-15
    • 2017-03-09
    • 1970-01-01
    • 2014-05-03
    • 2013-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多