import matplotlib.pyplot as plt
squares = [1, 4, 9, 16, 25]
fig, ax = plt.subplots()
ax.plot(squares)
plt.show()
运行此代码显示出错(用的是pycharm,python为3.10)
错误如下
ImportError: cannot import name 'inv' from 'numpy.linalg'
import matplotlib.pyplot as plt
squares = [1, 4, 9, 16, 25]
fig, ax = plt.subplots()
ax.plot(squares)
plt.show()
运行此代码显示出错(用的是pycharm,python为3.10)
错误如下
ImportError: cannot import name 'inv' from 'numpy.linalg'