- 博客(2)
- 收藏
- 关注
原创 python报错:cannot import name ‘int‘ from ‘numpy‘
报错原因是numpy版本不支持该引用,np.int在numpy1.20已经被废弃掉了。我重新安装的是1.22.4版本的numpy包,使用这个版本就不会再报错了。在Anaconda Prompt中查看自己所使用的numpy版本。我用的numpy版本是1.24.3,出现了报错。其他的版本我没有试过,大家可以自己尝试一下。在Python中导入包时出现报错。解决方法:更换numpy版本。
2023-06-01 17:20:28 6010 1
原创 Python报错:AttributeError: ‘ImageDraw‘ object has no attribute ‘textbbox‘
Python报错:AttributeError: ‘ImageDraw‘ object has no attribute ‘textbbox‘
2023-05-11 17:36:44 8388 7
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人