ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature报错

【报错】:
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1)

【文件定位】:
File “/home/new3/.local/lib/python3.5/site-packages/scipy/ndimage/interpolation.py”, line 718, in rotate
out_center = rot_matrix @ ((out_plane_shape - 1) / 2)

【原因分析】:
使用了scipy包且版本过高,网上查询的版本都是0.xx.xx的版本用过ndimage.rotate()等函数。

【解决方法】
pip install scipy==0.18.1,问题解决!

你可能感兴趣的:(学习笔记)