AttributeError: ‘tuple‘ object has no attribute ‘type‘

AttributeError: ‘tuple’ object has no attribute ‘type’

原因:有多个版本的numpy导致

1、conda activate 进入环境

2、将numpy的版本删除干净
pip uninstall numpy

3、重新下载numpy
pip install numpy

问题解决!!!

猜你喜欢

转载自blog.csdn.net/qq_35544714/article/details/109229876
今日推荐