pip3 install package with version code example
Example 1: how to update a module in python
pip install [package] --upgrade
Example 2: pip upgrade package
pip install Django --upgrade
Example 3: upgrading a pip package while importing it
pip install [package_name] --upgrade