Not able to plot graph: matplotlib is needed for plotting

后端 未结 4 1594
自闭症患者
自闭症患者 2021-01-18 13:01

I am able to generate *.dat file:

vikas@server:~/memory_profiler-0.36$ ./mprof run --python test_sl.py 
vikas@server:~/memory_profiler-0.36$ ls *.dat
mprofil         


        
4条回答
  •  误落风尘
    2021-01-18 13:45

    I had same problem on freshely installed Ubuntu 16.04. To solve it, I have installed SciPy like this: sudo pip install scipy

    Also I had to install tkinter lib like this: sudo apt-get install python-tk

    I guess somewhere in the past, matplotlib had scipy as dependency, but now it only has numpy, while mprof plot requires scipy.

提交回复
热议问题