How to use 'pip list available versions' in Python

Every line of 'pip list available versions' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
496def list_versions():
497 """List the previous versions available to rollback to."""
498 # could also determine the VCS revision number
499 _set_vcs_root_dir_timestamp()
500 version_list = _get_list_of_versions()
501 utils.puts('Available versions are:')
502 for version in version_list:
503 utils.puts(version)
504 utils.puts('Current version is %s' % env.vcs_root_dir_timestamp)
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code


Related snippets