升级numpy + MKL库

时间:2018-02-24 04:42:47

标签: python-3.x numpy pip

当我尝试运行程序时,我收到此错误

SELECT 
       indiv, status, date,
       Prev = CASE WHEN t.status <> 'Download' THEN
                  (SELECT TOP 1 indiv FROM table WHERE [date] < t.[date] AND status <> 'Reassign' ORDER BY [date] DESC) END,
       Next = CASE WHEN t.status <> 'Download' THEN
                  (SELECT TOP 1 indiv FROM table WHERE [date] > t.[date] AND status <> 'Reassign' ORDER BY [date]) END
FROM table t

当我使用

升级我的numpy安装时
  

pip install numpy --upgrade

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

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

如何升级我的numpy_MKL库?

1 个答案:

答案 0 :(得分:1)

请在此处参阅我对其他问题的回答:RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb 并升级到pandas版本0.21.0 pip install pandas==0.21.0并再次进行测试。

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