Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


pip install --user tries to uninstall system package #440

npinto opened this Issue · 3 comments

4 participants


I'm trying to install a package into my $PYTHONUSERBASE (see PEP370) using --user but since my system already has an older version pip is trying to uninstall the system version and fails.

$ pip install --no-deps --user git+
Downloading/unpacking git+
  Cloning to /tmp/pip-hmaLKb-build
  Running egg_info for package from git+

    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no files found matching ''
Installing collected packages: Fabric
  Found existing installation: Fabric 1.3.3
    Uninstalling Fabric:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pip/", line 126, in main, args)
  File "/usr/lib64/python2.7/site-packages/pip/commands/", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/usr/lib64/python2.7/site-packages/pip/", line 1096, in install
  File "/usr/lib64/python2.7/site-packages/pip/", line 482, in uninstall
  File "/usr/lib64/python2.7/site-packages/pip/", line 1398, in remove
    renames(path, new_path)
  File "/usr/lib64/python2.7/site-packages/pip/", line 255, in renames
    shutil.move(old, new)
  File "/usr/lib64/python2.7/", line 299, in move
OSError: [Errno 13] Permission denied: '/usr/bin/fab'

Storing complete log in /home/npinto/.pip/pip.log
@pnasrat pnasrat was assigned

Confirmed in develop as issue.

@pnasrat pnasrat referenced this issue from a commit in pnasrat/pip
@pnasrat pnasrat Issue #440 using user site with installed. 7735e33

This also happens with --target.


fixed in pull #574

@qwcode qwcode closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.