在Ubuntu14.04和Python3.4-3.6环境中,matplotlib不显示图像的问题的解决方法

    xiaoxiao2021-03-25  95

    1、安装python3-pyqt5,文件91M,建议直接下载。

    sudo apt-get install python3-pyqt5 2、 找到 matplotlibrc 文件,打开python console 

    import matplotlib 

    matplotlib.matplotlib_fname()

    3、编辑matplotlibrc文件

    sudo gedit [matplotlibrc file path]

    找到"backend"变量将值改为"qt5agg",

    存盘退出。

        

    转载请注明原文地址: https://ju.6miu.com/read-17587.html

    最新回复(0)