Given the security issues associated with running sudo pip
, is there any reason not to take ownership of my
/Library/Python/2.7/site-packages
directory on OS X with
chown -R $(whoami):admin /Library/Python/2.7/site-packages
I understand that there will still be some packages that ask for sudo
(to write to other locations); but given that this will allow many packages to install without, is there any reason not to make this change of ownership?
I'm aware that Homebrew and virtual environments are good approaches too (I use both): this is specifically about cases involving packages in /Library/Python/2.7/site-packages
, not any maintained by brew
or virtualenv
.