Make sudo pip Safe Again
summary
Claim: running sudo pip3 is unsafe on Fedora because pip shares DNF-managed installation directories and can remove or overwrite files, leaving Python 3 broken. The work inspects Python interpreter initialization, reproduces breakage in live demos, and measures package removals. The proposed mitigation is a Fedora Change proposal to separate install locations and enforce packaging policy; demos and tests show the failure mode and a workable packaging-level fix.
AI-written summary · about
chapters (7)
- 0:00Introduction to sudo pip risks
- 4:06Problems with pip in Fedora
- 8:07Security flaws in Python packages
- 12:10User local directory conflicts
- 16:08Python 3 in Fedora 24
- 20:11Solutions and best practices
- 24:58Future of sudo pip safety
related talks
28mWhen pip install Is Not Enough: Real Threats and Practical Defenses
25mFedora loves Python: the distro and the language ecosystem
26mSecure Software Supply Chains for Python
35mSecuring Python projects Supply Chain
41mYou should switch to Python 3 (two years ago)
28mpip audit dozens of vulnerabilities after
30mThe Evolutionary Saga of Python Packaging
44mNobody Expects the Python Packaging Authority
