Matplotlib在Windows 10上崩溃了Python

时间:2018-06-18 11:35:00

标签: matplotlib anaconda

我在我的Windows10机器上安装了Anaconda,一旦我通过调用import matplotlib.pyplot导入它,Matplotlib将导致Python崩溃:

enter image description here

当我在shell上执行conda list时,这是matplotlib条目的值:

matplotlib                2.2.2                    py36_1    conda-forge

我想我不是唯一一个遇到这个严重问题的人。知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

找到一个修复 - 在这里分享。运行以下命令解决了问题:

SELECT Brand, 
   CASE 
     WHEN Brand = @Brand THEN sum(AllocStockQty)
     WHEN Division = @Div THEN sum(AllocStockQty)
     WHEN Department = @Dept THEN sum(AllocStockQty)
     WHEN Store = @Store THEN sum(AllocStockQty)
     WHEN StyleOrSKU = @StyleOrSKU THEN sum(AllocStockQty)
     ELSE 0 
  END as [Allocated Stock Qty]
FROM Qry_2_DCAllocStock 
GROUP BY Brand, Division, Department, Store, StyleOrSKU