【报错】:
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,问题解决!
站长简介:前每日优鲜python全栈开发工程师,自媒体达人,逗比程序猿,钱少话少特宅,关注我,做朋友, 我们一起谈人生和理想吧!我的公众号:想吃麻辣香锅
关注公众号回复充值+你的账号,免费为您充值1000积分