Skip to content

pipx upgrade fails when package is not installed #1262

@jorhett

Description

@jorhett

Describe the bug

The documentation at https://pipx.pypa.io/stable/docs/#pipx-upgrade says that upgrade is:

Upgrade a package in a pipx-managed Virtual Environment by running pip install --upgrade PACKAGE

pipx upgrade fails when a package is not installed, so that is not the behavior.

How to reproduce

$ pipx --version
1.4.3

$ pipx --verbose upgrade dummy_test
Package is not installed. Expected to find /Users/example/.local/pipx/venvs/dummy-test, but it does not exist.

It should have installed it if not installed, and upgraded it if installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions