🌐
Python
docs.python.org › 3 › library › index.html
The Python Standard Library — Python 3.14.5 documentation
While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It...
Discussions

The fastest way to make a list of installed packages?
Hi there I want to make a list of all installed packages (no matter whether importable or not). So I tried two methods as follows: def walk_packages(): def _error(modname): print(" Failed: {}".format(modname)) yield from pkgutil.walk_packages(onerror=_error) a = list(walk_packages()) def ... More on discuss.python.org
🌐 discuss.python.org
4
0
January 26, 2023
What are some amazing, great python external modules, libraries to explore?
All I gotta say is Awesome Python is the first place I go when I’m looking for a library. Well currated and regularly updated. There’s other ones for specific libraries if you look around too. More on reddit.com
🌐 r/Python
27
73
June 29, 2022
The hand-picked selection of the best Python libraries and tools of 2023
This feels too AI biased and misses the rest of the python community. I would say the project with the most impact on the whole ecosystem for 2023 would be ruff, followed by pydantic. More on reddit.com
🌐 r/Python
28
103
December 20, 2023
How do people discover Python libraries?
I just google “Python (library description I want)” So if I wanted abreviations or codes for countries, I would search “python3 country codes” and do a little digging. Sometimes the library is good and other times I look for another one. More on reddit.com
🌐 r/learnpython
21
30
December 22, 2022
Top answer
1 of 16
1338
help('modules')

in a Python shell/prompt.

2 of 16
673

Solution

Do not use with pip > 10.0!

My 50 cents for getting a pip freeze-like list from a Python script:

import pip
installed_packages = pip.get_installed_distributions()
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
     for i in installed_packages])
print(installed_packages_list)

As a (too long) one liner:

sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])

Giving:

['behave==1.2.4', 'enum34==1.0', 'flask==0.10.1', 'itsdangerous==0.24',
 'jinja2==2.7.2', 'jsonschema==2.3.0', 'markupsafe==0.23', 'nose==1.3.3',
 'parse-type==0.3.4', 'parse==1.6.4', 'prettytable==0.7.2', 'requests==2.3.0',
 'six==1.6.1', 'vioozer-metadata==0.1', 'vioozer-users-server==0.1',
 'werkzeug==0.9.4']

Scope

This solution applies to the system scope or to a virtual environment scope, and covers packages installed by setuptools, pip and (god forbid) easy_install.

My use case

I added the result of this call to my Flask server, so when I call it with http://example.com/exampleServer/environment I get the list of packages installed on the server's virtualenv. It makes debugging a whole lot easier.

Caveats

I have noticed a strange behaviour of this technique - when the Python interpreter is invoked in the same directory as a setup.py file, it does not list the package installed by setup.py.

Steps to reproduce:

Create a virtual environment

 virtualenv test_env
New python executable in test_env/bin/python
Installing setuptools, pip...done.
$ source test_env/bin/activate
(test_env) $

Clone a Git repository with setup.py

(test_env) $ git clone https://github.com/behave/behave.git
Cloning into 'behave'...
remote: Reusing existing pack: 4350, done.
remote: Total 4350 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (4350/4350), 1.85 MiB | 418.00 KiB/s, done.
Resolving deltas: 100% (2388/2388), done.
Checking connectivity... done.

We have behave's setup.py in /tmp/behave:

(test_env) $ ls /tmp/behave/setup.py
    /tmp/behave/setup.py

Install the Python package from the Git repository

(test_env) $ cd /tmp/behave && pip install .
running install
...
Installed /private/tmp/test_env/lib/python2.7/site-packages/enum34-1.0-py2.7.egg
Finished processing dependencies for behave==1.2.5a1

If we run the aforementioned solution from /tmp

>>> import pip
>>> sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])
['behave==1.2.5a1', 'enum34==1.0', 'parse-type==0.3.4', 'parse==1.6.4', 'six==1.6.1']
>>> import os
>>> os.getcwd()
'/private/tmp'

If we run the aforementioned solution from /tmp/behave

>>> import pip
>>> sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])
['enum34==1.0', 'parse-type==0.3.4', 'parse==1.6.4', 'six==1.6.1']
>>> import os
>>> os.getcwd()
'/private/tmp/behave'

behave==1.2.5a1 is missing from the second example, because the working directory contains behave's setup.py file.

I could not find any reference to this issue in the documentation. Perhaps I shall open a bug for it.

🌐
PyPI
pypi.org
PyPI · The Python Package Index
The Python Package Index (PyPI) is a repository of software for the Python programming language.
🌐
ActiveState
activestate.com › home › resources › quick read › how to list installed python packages
How to List Installed Python Packages - ActiveState
November 12, 2025 - The Pip, Pipenv, Anaconda Navigator, and Conda Package Managers can all be used to generate a simple list of installed Python packages, as well as JSON formatted lists.You can also use the ActiveState Platform’s command line interface (CLI), the State Tool to list all installed packages using a simple “state packages” command. For a complete list of all packages and dependencies (including OS-level and transitive dependencies, as well as shared libraries), you can use the Web GUI, which provides a full Bill of Materials view.
Find elsewhere
🌐
StxNext
stxnext.com › home › blog › 40 top python libraries every data scientist should know in 2026
40 Top Python Libraries Every Data Scientist Should Know in 2026
January 21, 2026 - Python has been widely adopted by the scientific community. Here’s our list of 40 most popular Python scientific libraries and tools.
🌐
OpenCV
opencv.org › home › news › top python libraries: a comprehensive guide
Top Python Libraries Every Beginner Should Learn & build projects
March 5, 2025 - In this blog, we’ll explore the top Python libraries every beginner should know, categorized by data science, deep learning, web development, and computer vision. Whether you’re working with data, building machine learning models, or developing web apps, this list will help you choose the ...
🌐
GeeksforGeeks
geeksforgeeks.org › python › libraries-in-python
Libraries in Python - GeeksforGeeks
November 13, 2025 - List4 min read · Tuples3 min read · Dictionary3 min read · Set5 min read · Arrays6 min read · Advanced Python · OOP Concepts3 min read · Exception Handling5 min read · File Handling4 min read · Python Database4 min read · MongoDB3 min read · MySQL8 min read · Packages4 min read · Modules3 min read · DSA Libraries5 min read ·
🌐
Python.org
discuss.python.org › python help
The fastest way to make a list of installed packages? - Python Help - Discussions on Python.org
January 26, 2023 - So I tried two methods as follows: def walk_packages(): def _error(modname): print(" Failed: {}".format(modname)) yield from pkgutil.walk_packages(onerror=_error) a = list(walk_packages()) def walk_packages_no_import(path=None, prefix=''): for ...
🌐
GitHub
github.com › vinta › awesome-python
GitHub - vinta/awesome-python: An opinionated list of Python frameworks, libraries, tools, and resources · GitHub
February 20, 2026 - An opinionated list of Python frameworks, libraries, tools, and resources - vinta/awesome-python
Starred by 297K users
Forked by 27.9K users
Languages   Python 57.8% | HTML 17.6% | CSS 17.1% | JavaScript 7.2% | Makefile 0.3%
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-list-installed-python-packages
How To List Installed Python Packages - GeeksforGeeks
January 29, 2026 - This method lists installed packages programmatically from within a Python script.
🌐
Matplotlib
matplotlib.org › stable › gallery › color › named_colors.html
List of named colors — Matplotlib 3.10.9 documentation
import math import matplotlib.pyplot as plt import matplotlib.colors as mcolors from matplotlib.patches import Rectangle def plot_colortable(colors, *, ncols=4, sort_colors=True): cell_width = 212 cell_height = 22 swatch_width = 48 margin = 12 # Sort colors by hue, saturation, value and name. if sort_colors is True: names = sorted( colors, key=lambda c: tuple(mcolors.rgb_to_hsv(mcolors.to_rgb(c)))) else: names = list(colors) n = len(names) nrows = math.ceil(n / ncols) width = cell_width * ncols + 2 * margin height = cell_height * nrows + 2 * margin dpi = 72 fig, ax = plt.subplots(figsize=(widt
🌐
Pydantic
docs.pydantic.dev › latest
Welcome to Pydantic - Pydantic Validation
Ecosystem — around 8,000 packages on PyPI use Pydantic, including massively popular libraries like FastAPI, huggingface, Django Ninja, SQLModel, & LangChain.
🌐
IN2P3 Events Directory
indico.in2p3.fr › event › 16864 › contributions › 63125 › attachments › 48552 › 61399 › Python_Libraries.pdf pdf
Python Libraries.key - IN2P3 Events Directory (Indico)
2nd ASTERICS-OBELICS International School School Programme: the program of the school is devoted to project development for astrophysics & astroparticle. The aim of the school is to provide theoretical and hands-on training on Python development. Please find more information here.
🌐
DataFlair
data-flair.training › blogs › python-libraries
Python Libraries - Python Standard Library & List of Important Libraries - DataFlair
February 28, 2018 - Next, we will see a list of twenty Python libraries that will take you places in your journey with Python.
🌐
Tryolabs
tryolabs.com › blog › top-python-libraries-2025
Top Python libraries of 2025 | Tryolabs
December 18, 2025 - Explore our 11th annual Top Python Libraries roundup, featuring two curated Top 10 lists for General Use and AI / ML / Data tools that matter today.
🌐
Python
docs.python.org › 3 › library › collections.html
collections — Container datatypes
The instance’s contents are kept in a regular list, which is accessible via the data attribute of UserList instances. The instance’s contents are initially set to a copy of list, defaulting to the empty list []. list can be any iterable, for example a real Python list or a UserList object.
🌐
WsCube Tech
wscubetech.com › resources › python › libraries
Libraries in Python: All Lists With Examples
October 1, 2025 - Understand top Python libraries, their uses, and how to choose the right one for your project. Explore comprehensive lists of must-have Python libraries.
🌐
Esri Community
community.esri.com › t5 › python-questions › get-a-list-of-installed-python-packages › td-p › 33747
Solved: Get a list of installed python packages - Esri Community
December 10, 2021 - (....) C:\...your install path...\bin\Python\envs\...your environment ...>conda list # packages in environment at ...
🌐
W3Schools
w3schools.com › python › python_ref_modules.asp
Python Standard Library Modules (3.13)
This page lists the built-in modules that ship with the Python 3.13 Standard Library.