如何找到Python模块的Debian包名称
我正在学习Python,发现有很多新模块我想试试,但这些模块默认并没有安装。因为我在用Ubuntu,所以我知道只需要用apt-get命令加上正确的包名就可以安装。
我的问题是,怎么才能知道某个模块的apt包名是什么呢?有没有简单的方法可以查找?
现在我在找“ipaddress”模块的包。
ImportError: No module name ipaddress
1 个回答
1
apt-cache search ipaddress | grep python
这是一个很好的起点。很多模块的名字都是“名字-python”这样的格式。