How do I uninstall packages that have been removed from pyproject.toml?
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Question
pipenv has pipenv clean
which removes all packages that are no longer in Pipfile.lock from the virtualenv. What is the equivalent with poetry? The docs say there is no need for pipenv sync
and pipenv clean
due to the remove
command https://github.com/sdispater/poetry#remove-command
But how does this work? I would need to run poetry remove XXX
against all my virtualenvs - manually keeping track of all packages that have been removed and remembering to remove them myself?
Is there not any way to sync my poetry.lock to my virtualenv to ensure the virtualenv only has the packages specified in poetry.lock installed?
I have a virtualenv on each box I deploy to, and keep pyproject.toml and poetry.lock under source code control. I then want a way to ensure each of those virtualenvs only has the packages in poetry.lock installed.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:25
- Comments:45 (18 by maintainers)
Top GitHub Comments
@stephsamson , is there any date for the next release? We are waiting for this feature.
#2172 fixes this issue and should be available in the next release.