Check installed packages in Python

access_time 2 years ago visibility33 comment 0

Different programming languages have different package management tools.

For Python, pip is the package installer. pip package itself can also be used to list all the installed packages in the system. However that doesn't work anymore in the latest versions. You can use pkg_resources package to get the same information. You can also use help function to list all the installed modules.

help('modules')

Code snippet

import pkg_resources
for d in pkg_resources.working_set:
    print(d.project_name, d.version)
info Last modified by Raymond at 2 years ago copyright This page is subject to Site terms.
Like this article?
Share on

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

Want to publish your article on Kontext?

Learn more

Kontext Column

Created for everyone to publish data, programming and cloud related articles.
Follow three steps to create your columns.


Learn more arrow_forward

More from Kontext

local_offer SQL Server local_offer python local_offer spark local_offer pyspark local_offer spark-database-connect

visibility 20400
thumb_up 4
access_time 2 years ago

Spark is an analytics engine for big data processing. There are various ways to connect to a database in Spark. This page summarizes some of common approaches to connect to SQL Server using Python as programming language. For each method, both Windows Authentication and SQL Server ...

Pandas DataFrame Plot - Scatter and Hexbin Chart

local_offer plot local_offer pandas local_offer jupyter-notebook local_offer python local_offer pandas-plot

visibility 124
thumb_up 0
access_time 6 months ago

 In this article I'm going to show you some examples about plotting scatter and hexbin chart with Pandas DataFrame. I'm using Jupyter Notebook as IDE/code execution environment.  Hexbin chart is a pcolor of a 2-D histogram with hexagonal cell and can be more informative compared ...

local_offer python local_offer SQL Server local_offer python-database

visibility 2182
thumb_up 0
access_time 8 months ago

Python JayDeBeApi module allows you to connect from Python to databases using Java JDBC drivers.

About column

Code snippets for various programming languages/frameworks.

rss_feed Subscribe RSS