您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – 如何修复AttributeError:模块’numpy’没有属性’square’

5b51 2022/1/14 8:21:35 python 字数 1086 阅读 522 来源 www.jb51.cc/python

我已将numpy更新为1.14.0.我使用Windows 10.我试图运行我的代码,我收到此错误: AttributeError: module 'numpy' has no attribute 'square' 这是我的进口:%matplotlib inline import matplotlib.pyplot as plt import tensor

概述

我已将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’所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶