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
$ pip install --user -e . # from pylint source directory, fails with permission error
$ pip install --user . # works, doesn't try to remove syswide install
this is inconsistent with non-editable installs
Did you mean to say with non --user
here?
I guess using --user
with --editable
is something almost no one does as most people install editable packages in virtualenvs I guess.
Funny, there's no editable
label.
Sorry, I meant with non-editable, user installs. The example code was incorrect, I changed it.
Relevant here: #4575
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.
Most helpful comment
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.