error: could not create '/Library/Python/2.7/site-packages/XXX': Permission denied

pip install XXX


出现: error: could not create '/Library/Python/2.7/site-packages/XXX': Permission denied


解决: 安装virtualenv


参考:  A non-magical introduction to Pip and Virtualenv for Python beginners

你可能感兴趣的:(python)