Mac 安装Powerline
Mac中安装oh My Zsh后会想着再安装个Powerline,显示效果如下
如何安装Powerline
如果没有安装pip,先安装pip
sudo easy_install pip
安装好后,安装powerline
pip install powerline-status
此过程中有可能出现以下问题
error: [Errno 1] Operation not permitted: u'/xxxx/powerline’
原因是新版Mac 系统引入**SIP机制(System Integrity Protection)**所致,用以下方式解决,基于用户的权限来安装模块包
pip install powerline-status --user -U
oh My Zsh 安装详情可参考这里