DEV Community

Discussion on: Stop using sudo pip install

Collapse
 
blubberdiblub profile image
Niels Böhm • Edited

Using sudo pip on distros that provide native Python packages (apt-get install python-numpy, etc.) is calling for trouble.

Collapse
 
codesandbox profile image
code-sandbox

Fair enough. I do prefer the native package manager route when it's an option, but in those cases it's generally handled automatically as a dependency anyways. Really, 99.99% of all manual pip interactions should be happening in some sandbox env anyways. Regardless it's better practice to understand and respect root ops rather than fear them, because sometimes they are necessary.