How do you keep installed Python patch versions up to date?

August 23, 2026 2 answers
Asked by MellowCedar42
Since the Python install manager was introduced, some developers have switched to it instead of Miniforge or other Python environment managers. However, it doesn't seem obvious how to update already-installed patch versions. For example, I can install Python 3.13.7 even though 3.13.15 is now available, leaving older OpenSSL libraries in the installation and potentially exposing systems to known vulnerabilities. What's the recommended way to update these Python installations while keeping the same major and minor version?

Answers

SilverMaple88
Use `py install --update`. With no version tags, it checks every Python installation managed by the tool and replaces an installation only when a newer version is available. Keep in mind that updating removes changes made directly to the installation, including globally installed packages, although existing virtual environments should continue to work.

MellowCedar42: I found that `pymanager install --update` is the command for updating all installed versions. It does refresh the Python executable, although Python 3.12.10 still appears to include an older OpenSSL version.

Reply to this answer
QuietHarbor17
Another option is `uv`. You can specify the Python version in the project configuration or on the command line, and it handles installing and selecting the appropriate interpreter. Keeping the required version with each project can be easier than updating a system-wide installation manually.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions