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

Warn if pip-check-reqs is running from another environment #83

Open
MrMino opened this issue Mar 19, 2022 · 0 comments
Open

Warn if pip-check-reqs is running from another environment #83

MrMino opened this issue Mar 19, 2022 · 0 comments

Comments

@MrMino
Copy link
Collaborator

MrMino commented Mar 19, 2022

It is a pretty common pitfall to run a globally installed command that was reinstalled within the active virtualenv. Right after local virtualenv installation, the shell still resolves installed command to the global one, until user enters hash -d (or rehash in ZSH).

Since this will most likely make pip-check-reqs fail, we should warn when this happens.
Extra points for making the warning text yellow when stderr is a TTY.

See also #82.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant