update all package python with pip code example
Example 1: pip install upgrade all
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
Example 2: upgrading a pip package while importing it
pip install [package_name] --upgrade