Ubuntu 上默认安装了哪些 python 软件包

Sve*_*ier 2 python ubuntu

想象一下,必须编写 python 代码才能提交到远程 Ubuntu 盒子并在那里运行(你不需要触摸终端,你不需要安装任何东西或运行 apt 来查询安装的内容)。你会如何弄清楚默认情况下该机器上可能有哪些 python 软件包(即完整的 Ubuntu 安装包含哪些内容,而不是我以后可以下载和安装哪些内容)。我很难找到诸如“默认安装的所有软件包的列表”之类的东西。有这样的事吗?或者我是否必须下载图像并实际安装它才能了解盒子里有什么?

Joh*_*nck 5

访问http://releases.ubuntu.com/并选择特定的 Ubuntu 版本。然后下载“.manifest”文件(可以有多个,例如桌面和服务器)。例如,这是一个最近的文件: http://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-live-server-amd64.manifest

grep 查找“python”,您将看到大部分相关部分。以上链接中精选的一些亮点:

python3 3.8.2-0ubuntu2
python3-automat 0.8.0-1ubuntu1
python3-blinker 1.4+dfsg1-0.3ubuntu1
python3-colorama    0.4.3-1build1
python3-configobj   5.0.6-4
python3-dbus    1.2.16-1build1
python3-idna    2.8-1
python3-jinja2  2.10.1-2
python3-jsonschema  3.2.0-0ubuntu2
python3-more-itertools  4.2.0-1build1
python3-oauthlib    3.1.0-1ubuntu2
python3-requests    2.22.0-2ubuntu1
python3-simplejson  3.16.0-2ubuntu2
python3-six 1.14.0-2
python3-twisted 18.9.0-11
python3-urllib3 1.25.8-2
python3-yaml    5.3.1-1
python3-zope.interface  4.7.1-1
Run Code Online (Sandbox Code Playgroud)