question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pip should auto-update

See original GitHub issue

This 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:closed
  • Created 9 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dstufftcommented, Mar 24, 2017

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.

0reactions
eskhoolcommented, Mar 21, 2016

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:

surely, but you also need someone caring about that and implementing it - it takes a while to write that and make a automated test for it

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/pypa/pip/issues/2030#issuecomment-198692336

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found