概述
我已将numpy更新为1.14.0.我使用Windows 10.我试图运行我的代码,我收到此错误:
AttributeError: module ‘numpy’ has no attribute ‘square’
这是我的进口:
%matplotlib inline
import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
from sklearn.metrics import confusion_matrix
import math
总结
以上是编程之家为你收集整理的python – 如何修复AttributeError:模块’numpy’没有属性’square’全部内容,希望文章能够帮你解决python – 如何修复AttributeError:模块’numpy’没有属性’square’所遇到的程序开发问题。
如果您也喜欢它,动动您的小指点个赞吧