1 找到所安装python路径/usr/local/Cellar/python/2.7.13/bin2 vim ~/.bash_profile 3 添加如下代码: PATH="/usr/local/Cellar/python/2.7.13/bin:${PATH}"export PATH4 保存退出 ,5 source ~/.bash_profile