Reputation: 27
I have already installed 'display' module for python using the following code:
pip3 install display
However, when I try to import a module with the code given below,
from display import Displayable
I get the following error:
ModuleNotFoundError: No module named 'display'
Any help will be greatly appreciated. Thanks.
Upvotes: 0
Views: 609
Reputation: 511
This module is not widely used and does not have proper documentation.
I suggest using pprint
to display data nicely.
Start by pip installing pprint
:
pip install pprint36
pip3 install pprint36
import pprint
stuff = [['apple', 'bannana'],'spam', 'eggs', 'lumberjack', 'knights', 'ni']
stuff.insert(0, stuff[:])
pp = pprint.PrettyPrinter(indent=4,compact=False)
pp.pprint(stuff)
From pprint docs
Upvotes: 1