in pip upgrade modules code example
Example 1: upgrading a pip package while importing it
pip install [package_name] --upgrade
Example 2: update all packages in cmd
sudo pip install [package_name] --upgrade
#update single Package
pip install [package_name] --upgrade
sudo pip install [package_name] --upgrade
#update single Package