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.

Can't uninstall packages installed with `-e`, or when providing a directory name

See original GitHub issue

This seems to he the same as #1895 which was closed without steps to reproduce. edit this is a duplicate of #4431

When installing packages using -e, you can’t uninstall them using pip, you just get Can’t uninstall python-jsonstore. No files were found to uninstall.

To reproduce in Docker: docker pull ubuntu:16.04 && docker run -it --rm ubuntu:16.04

apt-get update --yes
apt-get install --yes git python python-pip
pip install --upgrade pip==9.0.1
git clone -b 1.0.0 https://github.com/Code0x58/python-jsonstore.git
pip install -e python-jsonstore/
pip uninstall python-jsonstore

The error message comes up when trying to uninstall the package name, but there is nothing if you uninstall the directory - either way the module remains installed as python -m jsonstore.tests runs.

Running with -v shows it falls through to this branch, where dist.location is the directory given to pip install -e.

It is probably a separate issue that you don’t get output (or a return code) when trying to uninstall a package that was installed from a directory - it should work or raise an exception like when you give a bad package name to uninstall.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:17
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

12reactions
CMCDragonkaicommented, Mar 22, 2018

I’m facing the same problem on Pip 9.0.1. But I have a custom PIP_PREFIX. When using pip install ., and I can later pip uninstall package-name. But if I use pip install -e ., then pip uninstall package-name results in Can't uninstall 'package-name'. No files were found to uninstall..

2reactions
Kukananicommented, Sep 24, 2018

Can we please reopen this issue? I still can’t uninstall packages that were installed with -e unless I use the manual steps outlined here. I’m using the latest pip (18.0) in a virtualenv, Ubuntu 16.04.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to uninstall editable packages with pip (installed with -e)
According to my understanding it should remove it: "--uninstall, -u Un-deploy the current project. You may use the --install-dir or -d option to ......
Read more >
Unable to uninstall package with error "Unable to locate ...
Even if a package was installed with apt, it can only be uninstalled by running a command which includes its exact package name....
Read more >
Cannot remove pip package with strange name
Hello, I installed a package called `pycryptodome`, using the Python Interpreter interface in settings. For some reason, the package is...
Read more >
MSI installation error 1603 - Windows Server - Microsoft Learn
Provides solutions to the error 1603 that occurs when you install a Windows Installer package.
Read more >
Package Management - Termux Wiki
We have some optional repositories which provide content on specific topic and can be enabled by installing packages with name ending in -repo...
Read more >

github_iconTop Related Medium Post

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