I have installed some packages with -e
> pip install -e git+https://github.com/eventray/horus.git@2ce62c802ef5237be1c6b1a91dbf115ec284a619#egg=horus-dev
I with pip freeze I see
> pip freeze
...
-e git+https://github.com/eventray/horus.git@2ce62c802ef5237be1c6b1a91dbf115ec284a619#egg=horus-dev
...
when I try to uninstall the packages I get errors:
> pip uninstall horus-dev
Cannot uninstall requirement horus-dev, not installed
> pip uninstall horus
Cannot uninstall requirement horus, not installed
How do I uninstall such a package?
Install a dev package use cmd:
Uninstall:
It turns out that my installation was somehow corrupt.
I could find the entry in:
To solve the problem I removed the line in the .pth file by hand!
In case it helps anyone else: Not sure if it's the same problem, but I faced something similar, where I had installed a package locally for development with:
but when I ran
I got
and when I run
pip freeze
I getSo I dumped this to a
requirements.txt
, removed everything but the-e
line(s) and then executed:which worked for me
This is a bug on debian/ubuntu linux using OS-installed pip (v8.1.1 for me), which is what you'll invoke with
sudo pip
even if you've upgraded pip (e.g. get-pip.py). See https://github.com/pypa/pip/issues/4438For a discussion on how to clean up see https://askubuntu.com/questions/173323/how-do-i-detect-and-remove-python-packages-installed-via-pip, though the solutions there are of the "remove everything" variety.
For my system all I needed to remove was
/usr/local/lib/python2.7/dist-packages/{package_name}.egg-link
Simply uninstall the package you installed in 'editable' mode:
At
{virtualenv}/lib/python2.7/site-packages/
(if not using virtualenv then{system_dir}/lib/python2.7/dist-packages/
)distribute-0.6.34-py2.7.egg
) if there is anyeasy-install.pth
, remove the corresponding line (it should be a path to the source directory or of an egg file).