snippetpythonCriticalCanonical
How do I update/upgrade pip itself from inside my virtual environment?
Viewed 0 times
howupgradefrompipupdateitselfvirtualenvironmentinside
Problem
I'm able to update pip-managed packages, but how do I update pip itself? According to
What's the command for that? Do I need to use distribute or is there a native pip or virtualenv command? I've already tried
pip --version, I currently have pip 1.1 installed in my virtualenv and I want to update to the latest version. What's the command for that? Do I need to use distribute or is there a native pip or virtualenv command? I've already tried
pip update and pip update pip with no success.Solution
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 pipOn Windows the recommended command is:
py -m pip install --upgrade pipCode Snippets
pip install --upgrade pippy -m pip install --upgrade pipContext
Stack Overflow Q#15221473, score: 1683
Revisions (0)
No revisions yet.