Skip to content

pip show shows wrong package location when project is installed as editable #11638

@doronz88

Description

@doronz88

Description

When installing a python package in editable mode (-e), the expected location to show in pip show is the editable location. Instead, it shows the site-packages path.

Expected behavior

The location should be:

/path/to/package

Instead I'm getting:

/usr/local/lib/python3.11/site-packages/package

pip version

23.0

Python version

3.11

OS

macOS Ventura 13.1 Beta (22C5044e)

How to Reproduce

Install a python package as folllows:

python3 -m pip install -e /path/to/package

Now, try to show the package's location as follows:

python3 -m pip show package

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions