- macOS Mojave ver 10.14.1
- Homebrew 1.8.4
- Xcode 10.1(10B61)
$ python -V
Python 2.7.10
$ brew update
$ 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 - /usr/local/Frameworks
$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
$ brew reinstall python
# ???
$ python -V
Python 2.7.10
$ python3 -V
Python 3.7.1