- 博客(6)
- 收藏
- 关注
原创 【python】安装pycker时报错
又报错,显示是from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg出错。后续发现matplotlib新版本之后应该是对应importNavigationToolbar2Tk。在2.2版本之前的都是没问题的,因此,先卸载原有的matplotlib,再安装之前版本。这是报错信息,显示未安装obspy,于是安装obspy看看变化。安装之后,继续安装pycker。
2023-05-21 15:41:08
130
1
原创 python报错AttributeError: ‘numpy.ndarray‘ object has no attribute ‘rint‘
解决python报错AttributeError: 'numpy.ndarray' object has no attribute 'rint',以及分享调试过程
2022-04-09 17:08:06
21075
原创 python解决ValueError: could not broadcast input array from shape (X) into shape (Y)
我只有三个值,但是我要画出阶梯图,然后出现了这种问题:ValueError: could not broadcast input array from shape (3) into shape (200),就是因为我要把一个值在一个数组得前200都是这同样的值,这样就完成了阶梯的一条线。
2022-03-31 20:23:49
17750
原创 pytorch训练时报传入的数据为元组(tuple)类型,无法to.device
解决pytroch训练时报tuple类型错误,和ValueError: too many values to unpack (expected 2)
2022-03-31 17:23:07
3741
原创 计算loss时报TypeError: ‘Tensor‘ object is not callable
tensor object is not callable
2022-03-24 19:45:58
3456
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人