Poetry remove doesn't remove package
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: GNU/Linux 4.18.7-1-default, openSUSE Tumbleweed
- Poetry version: Poetry 0.11.5
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/rominf/a3f70219b49becc287d167761ea887d0
Issue
I have kg
library as git dependency. I remove it with poetry remove kg
but nothing happens:
$ poetry remove kg
Skipping virtualenv creation, as specified in config file.
Updating dependencies
Resolving dependencies... (0.4s)
Package operations: 1 installs, 0 updates, 0 removals
Writing lock file
- Installing peewee-async (0.6.0a0 8feebdf)
$ pip uninstall kg
Uninstalling kg-0.1.0:
Would remove:
/home/rominf/.pyenv/versions/3.6.6/envs/profile/lib/python3.6/site-packages/kg-0.1.0-py3.6.egg-info
/home/rominf/.pyenv/versions/3.6.6/envs/profile/lib/python3.6/site-packages/kg/*
Proceed (y/n)? y
Successfully uninstalled kg-0.1.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Poetry remove fails to remove any packages? - Stack Overflow
Manually removed the package from the pyproject.toml file. However, it seems like poetry should have this power. – Chris. May 10, 2021 at...
Read more >Commands | Documentation | Poetry - Python dependency ...
The remove command removes a package from the current list of installed packages. poetry remove pendulum. If you want to remove a package...
Read more >pip uninstall poetry But all p... - Replit
My package can not be installed via poetry so I'm instead doing pip install on .replit file. However, when I run my code,...
Read more >Poetry - The Blue Book
(This is equivalent to deleting the poetry.lock file and running install again ... maintainers to update their dependencies, if it doesn't exist, create...
Read more >Managing Python Dependencies with Poetry
Having pinned dependencies, doesn't mean that you shouldn't care about more recent ... In the same way, you can even remove a package...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone stumbling across this thread, it looks as though
poetry install --remove-untracked
would do the trick here.@sdispater
This is very important and I don’t know of any way to do this.
Say several developers work on a project. One performs an update which removes a package from the pyproject and lock files. How will the other developers ever remove this package?