M1 MacBook Pro Python环境搭建
一个conda的发行版已经原生适配了M1,那就是miniforge
安装homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
解决:打开网站 https://www.ipaddress.com/
查询一下 raw.githubusercontent.com对应的IP 地址 - 替换系统的host文件
注意:最好复制一份出来在更改 - 重新安装
-或者直接换源傻瓜操作-
/bin/zsh -c "$(curl -fsSL https://gitee.com/huwei1024/HomebrewCN/raw/master/Homebrew.sh)"
如果这样也报错可以去https://gitee.com/cunkai/HomebrewCN/blob/master/error.md 以及https://www.jianshu.com/p/4d978b758dda查看
安装miniforge
brew install miniforge