-
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
Regression in pip 22.3 when using wheel directly with Python 3.9 on Windows #11622
Comments
This is not a supported way of using pip. See https://peps.python.org/pep-0427/#is-it-possible-to-import-python-code-directly-from-a-wheel-file Either install pip in the environment, or use |
Running pip like that isn't a supported way of running pip. Can you give an example of the failure in a supported command? I assume that will probably involve some sort of To be clear, |
Good to know. Thanks for the link.
I don't think so.
The original (full) command is something like
It's used as a fallback to install packages in a virtual environment if there is no pip inside the virtual environment. |
Yeah, that's just not supported. You could try using the new zipapp distribution of pip. |
Description
In python-poetry/poetry#6950, we noticed a regression considering the embedded pip wheel in virtualenv. The issue can only be reproduced with Python 3.9 on Windows with pip 22.3 and 22.3.1. Since the bug can be reproduced without virtualenv, I take my chance here. We've already figured out that the bug comes from the update of the vendored pep517, strictly speaking from pypa/pyproject-hooks#144 so maybe the fix has to be done there.
The issue can be reproduced by running
python pip-22.3.1-py3-none-any.whl\pip install tomli-2.0.1.tar.gz
which fails with an OSError.Expected behavior
Command succeeds.
pip version
22.3.1
Python version
3.9
OS
Windows
How to Reproduce
python pip-22.3.1-py3-none-any.whl\pip install tomli-2.0.1.tar.gz
Output
Output with -v
Code of Conduct
The text was updated successfully, but these errors were encountered: