How do I update/upgrade pip itself from inside my virtual environment?
pip
is just a PyPI package like any other; you could use it to upgrade itself the same way you would upgrade any package:
pip install --upgrade pip
On Windows the recommended command is:
python -m pip install --upgrade pip
How to update/upgrade a package using pip?
The way is
pip install <package_name> --upgrade
or in short
pip install <package_name> -U
Using sudo
will ask to enter your root password to confirm the action, but although common, is considered unsafe.
If you do not have a root password (if you are not the admin) you should probably work with virtualenv.
You can also use the user flag to install it on this user only.
pip install <package_name> --upgrade --user
Things to do after upgrading pip itself?
To answer myself: No. So don't worry. But the next time you want to install a new package, please run pip install --upgrade pip
first.
Related Topics
How to Flatten a Nested JSON Recursively, with Flatten_JSON
Python Function Attributes - Uses and Abuses
Why Are Empty Strings Returned in Split() Results
Differencebetween Contiguous and Non-Contiguous Arrays
Returning the Product of a List
Assigning to Variable from Parent Function: "Local Variable Referenced Before Assignment"
Converting Xml to JSON Using Python
Adding Directory to Sys.Path /Pythonpath
Selenium Compound Class Names Not Permitted
How to Switch Position of Two Items in a Python List
Using Backslash in Python (Not to Escape)
How to Write a Multidimensional Array to a Text File
List to Dictionary Conversion with Multiple Values Per Key
How to Put Individual Tags for a Matplotlib Scatter Plot
Cmd Opens Windows Store When I Type 'Python'
What's the Deal with Python 3.4, Unicode, Different Languages and Windows