StaticMethod
StaticMethod

Reputation: 837

How do I find the debian package name of a python module

I learning python, and I keep finding new modules that I want to play with but aren't installed by default. Since I'm using Ubuntu, I know that all I need to do is to run apt-get with the correct package name.

The question is how do I find out what the apt package name is for a particular module? Is there an easy way to look it up?

Right now I am looking for the package for the "ipaddress" module.

ImportError: No module name ipaddress

Upvotes: 0

Views: 851

Answers (1)

Vorsprung
Vorsprung

Reputation: 34357

apt-cache search ipaddress | grep python

Is a good place to start. Many modules are called "name-python"

Upvotes: 2

Related Questions