Closed jacktraror closed 6 months ago
I cannot reproduce, everything works right for me.
Since pip seemed to invoke setuptools with the correct parameters, this may be a setuptools issue and not pip.
Closing due to lack of a reproducer and follow-up. We can always revisit this later.
Description
Problem
When installing a local package as in editable mode to venv, during the installation process, the installation directory is changed:
Expected: D:\project-name\.venv\Lib\site-packages\ Found: C:\Program Files\project-name\.venv\Lib\site-packages\ - (non existant)
and the following error thrown:
Environment
Attempted steps
Workaround
It is possible to work around this issue by adding the following argument:
In this case, the installation process ends sucessfully and all dependencies are correctly installed.
Files
requirements.txt
Setup.py
Expected behavior
No error and the local project is installed to the virtual environnment as editable dependency.
pip version
21.3.1
Python version
3.9.9
OS
Windows 10
How to Reproduce
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
Output
Code of Conduct