En partant du principe qu’on utilise pip:
pip2 freeze –all –local | grep -v ‘^\-e’ | cut -d = -f 1 | sudo -H xargs -n1 pip2 install -U && pip3 freeze –all –local | grep -v ‘^\-e’ | cut -d = -f 1 | sudo -H xargs -n1 pip3 install -U
En partant du principe qu’on utilise pip:
pip2 freeze –all –local | grep -v ‘^\-e’ | cut -d = -f 1 | sudo -H xargs -n1 pip2 install -U && pip3 freeze –all –local | grep -v ‘^\-e’ | cut -d = -f 1 | sudo -H xargs -n1 pip3 install -U