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 (...
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
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
python × 2344linux × 325
bash × 232
ubuntu × 195
debian × 160
python3 × 151
pip × 148
shell-script × 140
centos × 117
shell × 113
software-installation × 89
cron × 78
awk × 76
scripting × 73
rhel × 69
text-processing × 68
apt × 63
systemd × 62
package-management × 59
perl × 58
sed × 56
arch-linux × 56
yum × 55
raspberry-pi × 47
command-line × 45