python error: no module named pylab

后端 未结 7 1470
北海茫月
北海茫月 2020-12-12 16:12

I am new to Python and want to use its plot functionality to create graphs. I am using ubuntu 12.04. I followed the Python installation steps from http://eli.th

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 16:32

    I installed python-numpy python-scipy python-matplotlib, but it didn't work for me and I got the same error. Pylab isn't recognized without matplotlib. So I used this:

    from matplotlib import pylab
    from pylab import *
    

    and worked for me.

提交回复
热议问题