>首页> IT >

苹果在macOS Monterey 12.3测试版中将不再提供Python 2.7

时间:2022-01-29 08:50:49       来源:MacX

根据开发者发布说明,苹果在 macOS Monterey 12.3 测试版中,不再提供 Python 2.7。Python 2 自 2020 年 1 月 1 日后,已经不再被官方支持,这意味着没有错误修复、安全补丁或其他改变。

苹果建议开发者使用其他编程语言,比如 Python 3。不过,macOS 中并没有预载 Python 3,开发者可以在终端中运行 stub /usr/bin/python3,但会提示用户安装 Xcode 开发者工具。Xcode 开发者工具中包含 Python 3。

苹果在 2019 年发布的 macOS Catalina 中提到,未来版本的 macOS 将不再包含 Python 2.7。当时,苹果表示 macOS 中包含 Python 2.7 是为了兼容旧版软件。

关键词: 苹果 macOS Monterey 12 3 测试版 Python 2 7