python - 如何在 ubuntu 上安装 python 模块 sys、os 和 getopt?

标签 python ubuntu pip python-module

我的 python 版本是 Python 2.7.17
我通常使用 pip 安装其他模块,如 shutil 和 itertool 等。我找不到 os、getopt 和 sys 模块的包名。
任何帮助将不胜感激。
谢谢你。

最佳答案

Python 2.7 已过时且不再受支持(截至 2020 年 1 月 1 日)。您应该考虑使用最新版本(当前为 Python 3.8.5)。如需更多信息,请参阅 this .
您正在寻找的模块是标准 Python 发行版的核心模块,因此它们是在安装 Python 本身时安装的。

关于python - 如何在 ubuntu 上安装 python 模块 sys、os 和 getopt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63282832/

相关文章:

python - 如何将Django升级到2.0版本

python - 在 O(log n) 时间内搜索旋转排序数组

python - Seaborn 情节未显示

python - 定期账户订阅

Perl 错误 : not a reference

ubuntu - Oracle XE 10g Ubuntu 从 Oracle 网站上删除了吗?

PHP 服务器输出关于 FD_SETSIZE 的警告

python - pip,代理认证和 "Not supported proxy scheme"

python - 错误 : command 'gcc' failed with exit status 1 on CentOS

python - 在 ApplicationSession 的注册端点内访问 RPC 调用者的 IP 和 HTTP 连接 header