pip premission denied in macOS Seirra when install

最近准备pip安装一个库selenium, sudo pip install selenium各种不好使, 原因就是OSX EI提高了目录管理权限.

error: could not delete '/Library/Python/2.7/site-packages/selenium/__init__.py': Permission denied

最后试了试下面这句话:

sudo pip install --user selenium

成功解决问题.

stackoverflow关于该问题的讨论

你可能感兴趣的:(pip premission denied in macOS Seirra when install)