It looks like that prettytable module isn't available on PyPI. You can download a source code from https://code.google.com/p/prettytable/downloads/list and then install the module.
pip install https://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.7.2.tar.bz2
Answer from comuri on Stack OverflowIt looks like that prettytable module isn't available on PyPI. You can download a source code from https://code.google.com/p/prettytable/downloads/list and then install the module.
pip install https://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.7.2.tar.bz2
pip install PrettyTable
or
pip3 install PrettyTable
» pip install prettytable
Newest 'prettytable' Questions - Stack Overflow
python - No module named 'prettytable' - Stack Overflow
Install the same package on two different versions of Python - Stack Overflow
Python - prettyTables module
Videos
» pip install prettyTables
movies = [["The movie 1",2020,19.99],["The movie 2",2022,30],["The movie 3",2025,40]]
for i in movies:
films = movies[i]
y.add_column("Movie Name",[films[0]])
So I am trying to add this movie list containing the [Name of movie,year,price] into a prettyTable. I am trying to figure how to make the first column so it has a header of movie name followed by the name of the movies in the rows. I dont understand why the above code wont work. Can someone help me with the first part(Movie name section of table) and i will do the rest my self. PS: I am a noob trying to rank up my python knowledge.