Matplotlib doesn't display graph in virtualenv

后端 未结 5 879
予麋鹿
予麋鹿 2021-02-05 11:53

I have pip installed matplotlib in my virtualenv and I am trying to plot a simple graph. I use Eclipse and PyDev. When I run the script from Eclipse it doesn\'t display any grap

5条回答
  •  日久生厌
    2021-02-05 12:37

    I had the same issue, and installing matplotlib using easy_install instead of pip did not solve it. In the end, I found out that the problem was simply that matplotlib could not find any backend for plotting.

    I solved it by doing the following (I am using Debian wheezy):

    pip uninstall matplotlib
    sudo apt-get install tcl-dev tk-dev
    pip install matplotlib
    

提交回复
热议问题