mac电脑环境安装
1、安装homebrew,进入终端,输入以下命令,enter后输入电脑开机密码
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2、brew -v 查看版本 ,arm芯片使用这个命令 /opt/homebrew/bin/brew -v
3、配置homebrew环境变量
echo 'export PATH="/opt/homebrew/bin:$PATH"' >>~/.bash_profile
source ~/.bash_profile
echo 'export PATH="/opt/homebrew/bin:$PATH"' >>~/.zshrc
source ~/.zshrc
python环境配置
1、安装python,下载并安装
https://www.python.org/downloads/release/python-396/
2、python安装路径
进入python目录,编辑文件 vi ~/.zprofile ,配置环境变量
PATH="..../xxx/xxx/bin:${PATH}"
export PATH
alias python=".../xxx/xxx/bin/python3"
source ~/.zprofile