3 ms·
Part of the problem is the many packages that require sudo permissions to install - IMHO that should be an exceptional case, but it isn't.
by PeterisP 10y ago
Part of the problem is the many packages that require sudo permissions to install - IMHO that should be an exceptional case, but it isn't.
- nneonneo 10y agoPackages often require sudo in order to install to the global interpreter - it's a security hazard otherwise. Imagine a Python package which overrides the sys module. If it didn't require sudo, anyone could install it and compromise Python for everyone else (or, for instance, compromise setuid programs). The two solutions here are user-local packages (pip --user, for example) and virtual environments.