Ubuntu 上的 python 附带任何库吗?

Ubuntu 上的 python 附带任何库吗?

我之所以问这个问题,是因为在我看来,标准的 Ubuntu 安装已经附带了 python 库请求(尽管我可能错了)。 是否有 Ubuntu python 附带的库列表(如果有的话)?

答案1

要获取可用的 Python 3 模块列表,请打开终端然后运行:

python3 -c 'help("modules")'

对于 Python 2 运行:

python -c 'help("modules")'

至于 Ubuntu 预装的程序,这些是包含在Python 标准库并在 Ubuntu 中安装libpython-stdliblibpython3-stdlib软件包,如下所示Python 2 的软件包信息对于 Python 3

相关内容