-
Notifications
You must be signed in to change notification settings - Fork 3k
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
"pip check" influenced by Python package in current working directory #7971
Comments
Oh, just after submitting the issue, I found out how
|
@The-Compiler can you confirm you have a |
Thanks for the fast answer - I do indeed! So where is that coming from, and what's going on exactly? |
It's a metadata directory, and a byproduct of many setup.py commands (install, bdist, sdist etc).
Having that metadata directory in sys.path makes pip believe the package is installed. This is being discussed in #7731 and related PR. The solution is not entirely clear yet. |
@The-Compiler do you mind if we close this as a duplicate of #7731? |
Sounds reasonable, thanks for the explanation! |
Changing cwd as workaround for pypa/pip#7971
Environment
Description
When I'm inside the qutebrowser repository and run
pip check
with.
insys.path
(e.g. viapython3 -m pip
), even with a totally unrelated virtual environment, pip complains about qutebrowser dependencies not being installed:Running pip with
--isolated
doesn't change anything about it either.Unfortunately, I have not been able to reproduce with a new clean clone of the qutebrowser repository - before I go dig in further, I was wondering if someone had an idea of what could be going on.
Expected behavior
pip check
shouldn't be affected by the current working directory, or by a Python package there which isn't installed.The text was updated successfully, but these errors were encountered: