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.
Python 2.7.16(默认,2020 年 2 月 29 日,01:55:37)[GCC 4.2。`
答案1
也许你两者都有,试试这个
~> python --version
Python 2.7.17
~> python3 --version
Python 3.6.9
此外,由于二进制和库路径等原因,软件已安装在某些 /usr/local 路径中并不一定意味着它将被使用。
您在此处粘贴的第一条错误消息建议that you transition to using 'python3' from within Terminal.