macOS Catalina 10.15 弃用 Python2.7,内嵌了Python3建议使用

在 macOS 10.15 终端中执行 /usr/bin/python 时,会出现下边的提示

WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.

提示的意思是,Python2.7已经是不推荐的了,建议使用python3 当然新macOS系统已经内置了 python3, 直接在命令行执行python3即可,不用自己安装

内置的python3版本是 3.7.3

Python 3.7.3 (default, Sep  5 2019, 17:14:41)
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
评论

Blocky

登录过40天

分享&发布