how to make import specifically from pip3 code example
Example 1: update pip
sudo pip3 install --upgrade pip
Example 2: update pip module
pip install [package_name] -U
Example 3: upgrading a pip package while importing it
pip install [package_name] --upgrade