Powerline:"pip install powerline-status"安装失败

最近在配置zsh,需要安装Powerline,但是"pip install powerline-status"命令一直报错,可以看出是权限问题,但是不知道解决方案.随后,查到解决方法,记录如下.

错误如下:

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f8/985kc8x54_l5dqt8wsd6v2sc0000gn/T/pip-build-vU7lLf/powerline-status/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/f8/985kc8x54_l5dqt8wsd6v2sc0000gn/T/pip-C37nKm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/f8/985kc8x54_l5dqt8wsd6v2sc0000gn/T/pip-build-vU7lLf/powerline-status/

解决方法如下:


pip uninstall powerline-status --user


即在原来的命令后面加上"--user",谢谢各位.

参考文章:http://www.jianshu.com/p/7de00c73a2bb

你可能感兴趣的:(Powerline:"pip install powerline-status"安装失败)