Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UV pip list does not give system package list. #2005

Closed
GadgetSteve opened this issue Feb 27, 2024 · 4 comments · Fixed by #2033
Closed

UV pip list does not give system package list. #2005

GadgetSteve opened this issue Feb 27, 2024 · 4 comments · Fixed by #2033
Assignees
Labels
enhancement New feature or improvement to existing functionality good first issue Good for newcomers

Comments

@GadgetSteve
Copy link

GadgetSteve commented Feb 27, 2024

The command uv pip list when run outside of a virtual environment or conda installation does not list any system level packages.

$ uv pip list
error: Failed to locate a virtualenv or Conda environment (checked: `VIRTUAL_ENV`, `CONDA_PREFIX`, and `.venv`). Run `uv venv` to create a virtualenv.

Platform: Windows 11 (64 bit)
Version: uv 0.1.11 (32e5cac 2024-02-26)

@zanieb
Copy link
Member

zanieb commented Feb 27, 2024

I think this requires #2000

@zanieb zanieb added the enhancement New feature or improvement to existing functionality label Feb 27, 2024
@charliermarsh charliermarsh self-assigned this Feb 28, 2024
@charliermarsh
Copy link
Member

Yeah, we now have the capability to list packages in a system environment, so we can support this.

@zanieb zanieb added the good first issue Good for newcomers label Feb 28, 2024
@zanieb
Copy link
Member

zanieb commented Feb 28, 2024

Maybe a good "second" issue :)

@charliermarsh
Copy link
Member

Oops too late

charliermarsh added a commit that referenced this issue Feb 28, 2024
## Summary

Now that we have the ability to introspect the installed packages for
arbitrary Pythons, we can allow `pip freeze` and `pip list` to fall back
to the "default" Python, if no virtualenv is present.

Closes #2005.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants