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.

pip install --user -e tries to uninstall system-wide version, unlike pip install --user

See original GitHub issue
  • Pip version: 9.0.1
  • Python version: 3.6
  • Operating system: Arch Linux

Description:

Tried to install pylint in user, editable mode. Failed as pip tries to uninstall the system-wide version. While this could be a reasonable behavior, this is inconsistent with non-editable installs, which do NOT attempt to remove the system-wide version

What I’ve run:

$ pip install --user -e . # from pylint source directory, fails with permission error
$ pip install --user . # works, doesn't try to remove syswide install

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ppham27commented, May 21, 2019

As a workaround, it works to do pip install --user . && pip install --user -e . to hack pip into just overwriting the user version. To make this even quicker, I just copy over the *.dist-info folder.

0reactions
iuriguilhermecommented, Jun 7, 2022

I see the same behaviour even with a minimal setup.py file (the import setuptools; setuptools.setup() one).

Workaround is forcing virtual environment and running pip install -e . - the setup.cfg would need to duplicate requirements.txt or equivalent with it’s own install_requires =, but that’s probably already done

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to uninstall a package installed with pip install --user
If the package is installed at both places, only the local one will be uninstalled. To uninstall the package system-wide using pip ,...
Read more >
1868277 – pip editable user install insists on removing system ...
Summary: pip editable user install insists on removing system copy ... pip install --user -e tries to uninstall system-wide version, unlike pip install...
Read more >
Install — conan 1.55.0 documentation
The preferred and strongly recommended way to install Conan is from PyPI, the Python Package Index, using the pip command. There are other...
Read more >
Using Python's pip to Manage Your Projects' Dependencies
What is pip? In this beginner-friendly tutorial, you'll learn how to use pip, the standard package manager for Python, so that you can ......
Read more >
How to uninstall a package installed with pip install --user
If the package is installed at both places, only the local one will be uninstalled. To uninstall the package system-wide using pip, first ......
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