在tensorflow环境下安装matplotlib

时间:2024-09-22 17:37:44

在运行程序时,报错ImportError: No module named 'matplotlib',如图。经网上查询发现是没有安装matplotlib

在tensorflow环境下安装matplotlib

因此记录一下在tensorflow环境下安装matplotlib的过程:

1.打开anaconda prompt,进入tensorflow的环境:activate tensorflow

2.安装matplotlib:conda install matplotlib

3.Proceed中输入:y

安装过程如图所示

在tensorflow环境下安装matplotlib