安装Python3
1、查看 mac 自带系统版本
#查看系统自带的python
open /System/Library/Frameworks/Python.framework/Versions
#系统当前的python版本。
python -V
2、开始安装(这里我们使用神器homebrew)
#安装前先搜索一下是否已经存在python3的包:
brew search python3
#已经存在,我们可以直接安装了:
brew install python3
#出现如下报错
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir -