我已将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
numpy.py
,请选择另一个名称(如果有相应的numpy.pyc
文件,请将其删除)。 - user2357112module 'numpy' has no attribute '__version__'
。 - Hoda Fakharzadehmatplotlib
时,我遇到了这个错误。 - mikey