question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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).

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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
grumbling-tomcommented, Apr 26, 2021

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?

For anyone stumbling across this thread, it looks as though poetry install --remove-untracked would do the trick here.

0reactions
PetterScommented, Mar 11, 2020

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found