关于AttributeError: module ‘numpy‘ has no attribute ‘ndarray‘的问题解决
关于AttributeError: module ‘numpy‘ has no attribute ‘ndarray‘的问题解决
出现这种情况有两种情况,所以有两种解决方案文件名称不能和常用的包取同样的名字比如说问题中的 ndarry 与你创建的.py文件重名,把ndarry文件名改掉就可以了.过低没有安装指定版本的numpy或者版本这里我安转了指定版本的numpyconda update numpy=1.20.1运行成功...


