import numpy as np
import matplotlib.pyplot as plt
x = [0,1]
y = [0,1]
plt.fihure()
plt.ylabel('ACC@1',size=20)
plt.xlabel('lters',size=20)
plt.title('line',size=30)
plt.plot(x,y,linewidth=3,c='r')
plt.show()
plt.savefig("1.jpg")Traceback (most recent call last):
File "E:/资料/hllo.py", line 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
你numpy模块没有安装,安装下numpy。
你可以按 Windows + R 键打开运行对话框,输入 cmd
先打开cmd 命令行窗口,在cmd命令行中C:\xxxx>下输入pip install numpy
或者参考
https://jingyan.baidu.com/article/e2284b2b22e2aca3e6118dba.html
如有帮助,望采纳!谢谢!