Not able to plot graph: matplotlib is needed for plotting

后端 未结 4 1597
自闭症患者
自闭症患者 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 14:01

    You need to install matplotlib, as instructed (this error in thrown by mprof when it can't find matplotlib).

    You can do so using pip pip install matplotlib (you might need to prefix this with sudo) or your package manager:

    • sudo apt-get install -y python-matplotlib on Debian, Ubuntu and derivatives.
    • sudo yum install -y python-matplotlib on RHEL, CentOS and derivatives.

提交回复
热议问题