在tensorflow环境下安装matplotlib

在tensorflow环境下安装matplotlib

 

在运行程序时,报错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