Skip to content

Proposal: pipx clean/reset #1606

@sigma67

Description

@sigma67

How would this feature be useful?

Pipx environment can become corrupted due to aborted installations (packages with missing metadata) or aborted shared upgrades.

Example error:

ModuleNotFoundError: No module named 'pip._internal.cli'

For this and other cases with corrupted metadata that are hard to recover from, it would be useful if pipx could reset itself to a first-installation state.

Describe the solution you'd like

Completely reset pipx to first installation state

Describe alternatives you've considered

Alternative is to manually delete pipx state. This is cumbersome however, as the location depends on the platform and each user needs to find out where it is located.

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