-
NO =
sudo pip
- NEVER RUN PIP WITH SUDO
-
YES =
sudo apt
orsudo apt-get
- installing Debian packages is OK
- many Python modules are available as Debian packages
-
YES =
sudo /absolute/path/to/venv/bin/python foo.py
- invoking Python with sudo is OK
- this is required in some situations to access underlying hardware (ex: neopixel)
- PEP 668
- xkcd 1987
Text editor powered by tinymce.