import matplotlib.pyplot as plt报错 您所在的位置:网站首页 statementseemstohavenoeffect import matplotlib.pyplot as plt报错

import matplotlib.pyplot as plt报错

#import matplotlib.pyplot as plt报错| 来源: 网络整理| 查看: 265

在pycharm中调试的时候,导入matplotlib.pyplot as plt报错,出现诸如module 'matplotlib.pyplot' has no attribute 'switch_backend'等问题,这时候不妨尝试一下降低matplotlib的版本,至少我使用了两条命令就解决了问题。

第一条,卸载原来的matplotlib:

pip uninstall matplotlib

第二条,安装低版本的matplotlib

pip install matplotlib==2.2.3



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有