I made a mess with my python using the script in my Ubuntu desktop version 20.04.
pip3 list --outdated --format=freeze | grep -v \'^\\-e\' | cut -d = -f 1 | x