Python 基本环境的配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wutengwei007/article/details/79124275

Mac 安装Python3 时出现的问题总结:

$ brew install python3
Warning: python3 3.6.3 is already installed, it's just not linked.
You can use `brew link python3` to link this version.
$ brew link python3
Linking /usr/local/Cellar/python3/3.6.3... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

报错原因是因为/usr/local 下没有路径 /usr/local/Frameworks 

解决办法:

$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
然后再次运行brew link python3 

$ brew link python3
Linking /usr/local/Cellar/python3/3.6.3... 1 symlinks created

参考链接: https://github.com/Homebrew/homebrew-core/issues/19286

猜你喜欢

转载自blog.csdn.net/wutengwei007/article/details/79124275