How to remove pip package after deleting it manually

前端 未结 4 1914
孤街浪徒
孤街浪徒 2020-12-13 06:02

I deleted a pip package with rm -rf command thinking that the package will be removed. Now the package has been deleted but it still shows up in pip list<

4条回答
  •  心在旅途
    2020-12-13 06:33

    I'm sure there's a better way to achieve this and I would like to read about it, but a workaround I can think of is this:

    1. Install the package on a different machine.
    2. Copy the rm'ed directory to the original machine (ssh, ftp, whatever).
    3. pip uninstall the package (should work again then).

    But, yes, I'd also love to hear about a decent solution for this situation.

提交回复
热议问题