安装matplotlib

问题:

在TensorFlow中导入matplotlib出错

提示:“ImportError: No module named 'matplotlib'”

解决方法:

  (1)首先进入tensorflow的环境:activate tensorflow  【激活TensorFlow】

  (2)安装matplotlib  :python -m pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

原文地址:https://www.cnblogs.com/pam-sh/p/12291193.html