how to update a python package

pip install Django --upgrade

Here is what the above code is Doing:
1. It’s creating a virtual environment called myvenv.
2. It’s installing Django in that virtual environment. (–upgrade means you’re upgrading Django to the latest version.)
3. It’s telling you that the virtual environment was created successfully.
4. It’s telling you how to activate the virtual environment.