-
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
Add awareness of pip installed packages #3006
Comments
EDIT -- Nope, I'm totally wrong. I didn't see the |
My apologies, I forgot to mention the pip install is ran inside the virtual env hence this behavior exist inside the project environment. Will edit the example. |
I think the suggested behavior would actually add a fair bit of difficulty to working on a poetry managed project. Sometimes I'll |
It looks like what I'm really looking for is to be able to undo pip install operation(s) without needing to know its name similar to pipenv's clean command. Unfortunately @n8sty, in your case your python environment will not be representative by your lockfile or pyproject.toml which I believe poetry discourages. |
|
@ketozhang My apologies -- I totally did not see the |
No worries, as I've edited that in after your comment so your confusion was my fault |
@finswimmer I've missed this having outdated poetry. Is it possible to make this behavior the default when running bare |
There is already a feature request for this: #2370 We haven't finally discussed it until now. |
In my opinion it would be best if pip would be aliased to something that just errors with "use poetry add to install packages". If I'm working together with others not familiar with poetry, they will inevitably use pip install and then wonder why the tool I've upsold them so greatly loses all of the dependency they add. |
The original issue seems to solved by |
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. |
Poetry is not aware of accidental/purposeful use of
pip
to install packagesActual
Expected
I understand this is very difficult to support currently and the current design recommends user to avoid
pip
in favor of installing viapoetry
. However, in peculiar cases (e.g., syntax conventions), sometimes install via poetry is not possible/easy and pip is preferred to be used.The text was updated successfully, but these errors were encountered: