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 Overflow
🌐
PyPI
pypi.org › project › prettytable
prettytable · PyPI
Note that if you know what style options you want at the moment you are creating your table, you can specify them using keyword arguments to the constructor. For example, the following two code blocks are equivalent: table = PrettyTable() table.border = False table.header = False table.padding_width = 5 table = PrettyTable(border=False, header=False, padding_width=5)
      » pip install prettytable
    
Published   Nov 14, 2025
Version   3.17.0
Discussions

Newest 'prettytable' Questions - Stack Overflow
A friend of mine has tried to import PrettyTable into their VS Code, but even after installing it in the terminal it only returns a Pylance(reportMissingModuleSource) error message. We have tried a ... ... import os import hashlib import time # Python 3rd Party Libraries from prettytable import ... More on stackoverflow.com
🌐 stackoverflow.com
python - No module named 'prettytable' - Stack Overflow
I have an issue with importing prettytable in VS code, even though I installed prettytable using pip install prettytable I got the error No module named 'prettytable' I tried pip install prettyt... More on stackoverflow.com
🌐 stackoverflow.com
Install the same package on two different versions of Python - Stack Overflow
I already have pretty table installed on Python 3.6 but I want to install it on python 3.8. So when I do pip install prettytable, it shows that the package has already been installed for 3.6 but li... More on stackoverflow.com
🌐 stackoverflow.com
February 11, 2021
Python - prettyTables module
# https://old.reddit.com/r/learnpython/comments/kzz01z/python_prettytables_module/ # CaliforniaDreamer246.py # https://pypi.org/project/prettytable/ # python -m pip install prettytable from prettytable import PrettyTable movies = [["The movie 1",2020,19.99],["The movie 2",2022,30],["The movie 3",2025,40]] y = PrettyTable() # movie by movie - column wise names = [] years = [] prices = [] for movie in movies: names.append(movie[0]) years.append(movie[1]) prices.append(movie[2]) y.add_column("Movie name", names) y.add_column("Year", years) y.add_column("Price", prices) print(y) More on reddit.com
🌐 r/learnpython
2
1
January 18, 2021
🌐
GitHub
github.com › kxxoling › PTable
GitHub - kxxoling/PTable: PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables.
PTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables, originally forked from PrettyTable. As PTable is a fork of PrettyTable, and compatible with all its APIs, so PTable is usage is the same as PrettyTable, and the installation would cover on the original PrettyTable.
Starred by 128 users
Forked by 47 users
Languages   Python 99.0% | Makefile 1.0% | Python 99.0% | Makefile 1.0%
🌐
Google Code
code.google.com › archive › p › prettytable › wikis › Installation.wiki
Google Code Archive - Long-term storage for Google Code Project Hosting.
Archive · Skip to content · The Google Code Archive requires JavaScript to be enabled in your browser · Google · About Google · Privacy · Terms
🌐
Stack Overflow
stackoverflow.com › questions › tagged › prettytable
Newest 'prettytable' Questions - Stack Overflow
We have tried a ... ... import os import hashlib import time # Python 3rd Party Libraries from prettytable import PrettyTable # pip install prettytable # Psuedo Constants targetFolder = input("Enter Target Folder: ...
🌐
Anaconda.org
anaconda.org › conda-forge › prettytable
prettytable - conda-forge | Anaconda.org
A simple Python library for easily ... · Labels 4 · Badges · Versions · 3.17.0 · To install this package, run one of the following: $conda install conda-forge::prettytable ·...
Find elsewhere
🌐
Javatpoint
javatpoint.com › prettytable-in-python
Prettytable in Python - Javatpoint
Prettytable in Python with python, tutorial, tkinter, button, overview, entry, checkbutton, canvas, frame, environment set-up, first python program, operators, etc.
🌐
Mintguide
mintguide.org › post › 5_prettytable
The PrettyTable Module in Python | MintGuide.Org
To install PrettyTable on Linux Mint, you will need Python and the pip package manager.
🌐
GitHub
github.com › lmaurits › prettytable
GitHub - lmaurits/prettytable: Automatically exported from code.google.com/p/prettytable · GitHub
== Importing data from a CSV file == If you have your table data in a comma separated values file (.csv), you can read this data into a PrettyTable like this: from prettytable import from_csv fp = open("myfile.csv", "r") mytable = from_csv(fp) fp.close() == Importing data from a database cursor == If you have your table data in a database which you can access using a library which confirms to the Python DB-API (e.g.
Starred by 31 users
Forked by 6 users
Languages   Python
🌐
PyPI
pypi.org › project › prettyTables
prettyTables · PyPI
If you're not sure which to choose, learn more about installing packages. No source distribution files available for this release.See tutorial on generating distribution archives. Filter files by name, interpreter, ABI, and platform. If you're not sure about the file name format, learn more about wheel file names. ... Details for the file prettyTables-1.1.5-py3-none-any.whl.
      » pip install prettyTables
    
Published   Jul 11, 2022
Version   1.1.5
🌐
Stack Overflow
stackoverflow.com › questions › 66157830 › install-the-same-package-on-two-different-versions-of-python
Install the same package on two different versions of Python - Stack Overflow
February 11, 2021 - /usr/bin/python3.8 -m pip install prettytable or /usr/local/bin/python3.8 -m pip install prettytable ... If you want an alternative to dealing with different python versions on your PC, I extremely recommend using anaconda (or the minimal version ...
🌐
ZetCode
zetcode.com › python › prettytable
Python PrettyTable - generating tables in Python with PrettyTable
January 29, 2024 - PrettyTable can read data from CSV, HTML, or database cursor and output data in ASCII or HTML. ... We install the module with the pip tool. A table can be created with add_row or add_column methods. ... #!/usr/bin/python from prettytable import PrettyTable x = PrettyTable() x.field_names = ...
🌐
LearnModernPython
learnmodernpython.com › home › mastering the ‘prettytable’ library: python table formatting 2026
Mastering The 'PrettyTable' Library: Python Table Formatting 2026
February 25, 2026 - This command will download and install the latest version of PrettyTable and its dependencies. Once the installation is complete, you’re ready to start using it in your Python scripts.
🌐
Reddit
reddit.com › r/learnpython › python - prettytables module
r/learnpython on Reddit: Python - prettyTables module
January 18, 2021 -

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.

🌐
LearnModernPython
learnmodernpython.com › home › mastering the ‘prettytable’ library: python’s data formatting powerhouse
Mastering The 'PrettyTable' Library: Python's Data Formatting Powerhouse
February 25, 2026 - Before we dive into the code, you’ll need to install the PrettyTable library. Luckily, it’s a straightforward process using pip, the Python package installer.
🌐
Tpoint Tech
tpointtech.com › prettytable-in-python
Prettytable in Python - Tpoint Tech
March 17, 2025 - In this tutorial, we will learn to create a relational table using the Python Prettytable module. We will create tables without using external libraries.