PyLab has no attrs
I am working with PyBrain and in the documentation it uses PyLab ... I am trying to import PyLab and it works, however when I try to use any of the modules python returns an error in it.
>>> import pylab
>>> dir(pylab)
['__author__', '__builtins__', '__doc__', '__email__', '__file__', '__name__', '__package__', '__path__', '__version__']
>>>
PyLab seems to be installed correctly, but it has no content.
source to share
There are many reasons why this is happening ... So let's find out what is happening.
The PyLab you installed is very likely from pypi:
which is actually here:
and when you look at the files, it matches what you say:
it's pretty empty βΊ
Although, if you install it, it will install a lot of scientific development dependencies for you:
Although, since you installed the package pylab
, you have it installed matplotlib
and you can use pylab, which is actually part of matplotlib:
So, if you're making from matplotlib.pylab import *
, you should start!
NTN
source to share