Online requirements.txt dependency updater

Paste a requirements.txt file to compare its packages with the versions available from PyPI. Choose the versions and specifiers you want, then generate an updated file.

The tool can show releases across major versions. Review release notes and test your project before using the generated file.




Your requirements.txt is processed in your browser and is not uploaded. Only package names are sent to this server to retrieve version information from PyPI.

Your updated requirements.txt

Review the generated file carefully before running python -m pip install -r requirements.txt.


Updating Python packages from the command line

pip installs packages into a Python environment. It does not automatically rewrite requirements.txt when a package is installed or upgraded.

  • python -m pip install --upgrade <package-name>: Upgrades a package in the active Python environment.
  • python -m pip list --outdated: Shows installed packages with newer releases.
  • python -m pip install <package-name>==<version>: Installs a specific version.
  • python -m pip install --upgrade -r requirements.txt: Upgrades packages as far as the requirements in the file permit.
  • pip-compile --upgrade: Regenerates a pinned requirements.txt when using pip-tools.

Before updating, check release notes for breaking changes and test the project in an isolated environment.


python -m pip install --upgrade <package-name>

This command upgrades the named package in the active environment. Constraints only apply when they are included in the command, for example through -r requirements.txt or -c constraints.txt. The command does not edit requirements.txt.


python -m pip list --outdated

This command compares installed packages with the latest releases available from the configured package index. It reports the installed and latest versions but does not update packages.

python -m pip install --upgrade -r requirements.txt upgrades the packages named in the file while respecting its version specifiers. Exact pins such as package==1.2.3 remain pinned until the file itself is changed.


pip-tools

pip-tools can compile high-level dependencies from requirements.in or pyproject.toml into a fully pinned requirements.txt. Use pip-compile --upgrade to refresh all permitted versions or pip-compile --upgrade-package <package-name> to update selected packages.

Review the generated diff and test the resulting environment before deploying it.