Skip to main content
5 votes

How can I automatically install all the pip packages used by a Python script?

pip install pipreqs pipreqs . This is a measure of last resort. Whoever wrote that script should have written down the requirements – as you can see, the pipreqs program is not very good at that (...
Marcus Müller's user avatar
5 votes

updating python now apt is wrecked

You broke the python3 package, and that’s what’s causing the cascading failures in dpkg. To fix that, undo your changes: sudo update-alternatives --remove-all python sudo dpkg --configure --pending ...
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible