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

Created on 21 Feb 2017  路  4Comments  路  Source: pypa/pip

  • 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
user scheme bug

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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings