My code is:
import texttable as tt
tab = tt.TextTable()
header = ['Manager', 'Club', 'Year']
tab.header(header)
print tab.draw()
During execution the following error occurs.
ImportError: No module named texttable
Can anyone help me with the steps to install texttable or with other solutions.
You have to download the module from the python website.
Decompress the archive, and go into the directory. Then execute the script setup.py
with install
in argument:
python setup.py install
You can find more information in the documentation.