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

it2026-09-20  2

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

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

1、conda activate 进入环境

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

3、重新下载numpy pip install numpy

问题解决!!!

最新回复(0)