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:
- Created 7 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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 .
- thesetup.cfg
would need to duplicaterequirements.txt
or equivalent with it’s owninstall_requires =
, but that’s probably already done