Skip to content

Pip upgradeall #4474

@Marriaga

Description

@Marriaga
  • Pip version: 9.0.1
  • Python version: 2.7.13
  • Operating system: Win10

Description:

I believe that there should be an option to upgrade all packages that are outdated. This seems to me like an essential command that is missing and there are threads online with many people looking for this.

What I've run:

usage:
pip install --upgradeall

code to add in InstallCommand:
__init__

cmd_opts.add_option(
            '--upgradeall',
            dest='upgradeall',
            action='store_true',
            help='Upgrade all outdated packages to the newest available '
                 'version. The handling of dependencies depends on the '
                 'upgrade-strategy used.'
        )

run

if options.upgradeall:
    args=[dist.project_name for dist in get_installed_distributions()]

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions