-
Notifications
You must be signed in to change notification settings - Fork 2.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 called by poetry tries to uninstall system site-packages #7214
Comments
Use a virtual environment. Currently you are telling poetry to install packages per the solution that it has found - and then not liking it when it tries to do exactly that. Edit: or possibly, use a virtual environment that does not share the system site-packages |
I am using virtual envs (which is created by poetry) as you can see in the output of the command:
```
Creating virtualenv test-CHLv_kh8-py3.10 in /home/jan/.local/share/pypoetry/virtualenvs
Using virtualenv: /home/jan/.local/share/pypoetry/virtualenvs/test-CHLv_kh8-py3.10
```
The pip command also includes this path as `--prefix` in its call which is the for me confusing part.
Am 18. Dezember 2022 14:13:35 MEZ schrieb David Hotham ***@***.***>:
…Use a virtual environment.
Currently you are telling poetry to install packages per the solution that it has found - and then not liking it when it tries to do exactly that.
|
Then, per my edit:
poetry defaults to not sharing system site-packages. If you have configured it to do so, then... don't! |
I did not change the standard configuration.
|
And yet the virtual environment that you are creating is clearly sharing system site-packages. You'll need to figure out why that's happening for you and not for anyone else. Perhaps you have a |
The thing is: If I create a virtual env without poetry and copy the pip command from the poetry debug output everything works as expected:
|
Suggest trying to build a docker image that reproduces the problem
|
Ok, after a longer debug of If someone else is so unlucky to encounter the problem: Just nuke your |
For completeness: I raised the bug that the cache is not invalidated to upstream: pypa/virtualenv#2467 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
The
pip
command with the arguments provided by poetry wants to uninstall system site-packages. The pyproject.toml is just a new generated one withpylint
in the newest version as entry.The text was updated successfully, but these errors were encountered: