Pip should auto-update
See original GitHub issueThis would be good because laggard users of pip tend to stymie adoption of new community standards.
Obviously it would be quite a bit to do this all in one step, here’s a roadmap I can imagine:
- Anytime
pip
contacts PyPI it checks to see if there’s a new version, and notifies the user. - If
pip
detects that it is out of date, it prompts the user to upgrade right then and there - A new env var
PIP_AUTO_UPDATE
which, if set, causes it to auto-update when it’s out of date - Turning that env var on by default and requiring users to set
PIP_NO_AUTO_UPDATE
to opt out
Probably this could also upgrade setuptools
and other core packaging packages.
(Probably this should only happen when running inside of a venv)
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to upgrade all Python packages with pip? - Stack Overflow
+1 - It's 6.20. 2019, I'm using Python 3.7. 3 on WIndows 10, and this was the best way for me to update...
Read more >AutoUpdate - PyPI
Change the current version with anything you want. It doesn't have to be in that format, it can be 0.0.1, 0.0.0.0.0.0.0.0.0.0.0.0.
Read more >How to Update All Python Packages - ActiveState
Pip can be used to upgrade all packages on either Windows or Linux: Output a list of installed packages into a requirements file...
Read more >Python: Update All Packages with pip-review - Stack Abuse
In this tutorial, we'll be going over a great simple tool - pip-review, to automatically update all Python packages.
Read more >How To: Write Self Updating Python Programs Using Pip and Git
Use Pip and the -e option plus a base URL to automatically update your software. eg. Have you software run pip for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this, while I love the idea of getting people onto a newer version, I still think that people need to be involved in state changes to their Python environments.
umm, but that’s surely why open source maintainers get our eternal undying gratitude 😉 …I think this slight automation would be popular especially pip is a backbone powering the pypi universe for almost everybody now. and most people are not using pip features that are version dependent. For the majority of us, we want the latest and greatest pip and without having to check or run the upgrade command and pip is quite actively upgraded.
All automations can be manually worked around till it is supported and adds to the maturity of the solution in question.
Many thanks again!
On Sat, Mar 19, 2016 at 5:49 PM, Ronny Pfannschmidt < notifications@github.com> wrote: