Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'skip:" 60': 0.07; 'args)': 0.09; 'matplotlib': 0.09; 'override': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:files': 0.09; 'thus,': 0.09; 'exception:': 0.16; 'modules.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:ignore': 0.16; 'uninstall': 0.16; 'fix': 0.17; 'skip:p 40': 0.19; 'install': 0.23; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'permission': 0.26; 'skip:" 30': 0.26; 'skip:" 40': 0.26; 'header:X-Complaints- To:1': 0.27; 'installed': 0.27; 'skip:p 30': 0.29; 'file': 0.32; 'run': 0.32; '(most': 0.33; 'but': 0.35; 'there': 0.35; 'installing': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'recent': 0.39; 'legitimate': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'remove': 0.60; 'six': 0.68; 'skip:r 40': 0.68; 'received:139': 0.84; 'skip:/ 30': 0.84; 'subject:system': 0.84; 'do:': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Neal Becker Subject: pip won't ignore system-installed files Date: Tue, 22 Oct 2013 09:11:40 -0400 Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: exa2-in-fw-01-epn.hns.com User-Agent: KNode/4.11.2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382447513 news.xs4all.nl 15949 [2001:888:2000:d::a6]:40364 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57257 IIUC, it is perfectly legitimate to do install into --user to override system- wide installed modules. Thus, I should be able to do: pip install --user --up blah even though there is already a package blah in /usr/lib/pythonxxx/site_packages/... But even with -I (ignore installed) switch, pip fails: pip install --user --up -I matplotlib ... Installing collected packages: matplotlib, numpy, python-dateutil, tornado, pyparsing, nose, six Found existing installation: matplotlib 1.2.0 Uninstalling matplotlib: Exception: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pip-1.2.1- py2.7.egg/pip/basecommand.py", line 107, in main status = self.run(options, args) File "/usr/lib/python2.7/site-packages/pip-1.2.1- py2.7.egg/pip/commands/install.py", line 261, in run requirement_set.install(install_options, global_options) File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 1162, in install requirement.uninstall(auto_confirm=True) File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 495, in uninstall paths_to_remove.remove(auto_confirm) File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 1492, in remove renames(path, new_path) File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line 273, in renames shutil.move(old, new) File "/usr/lib64/python2.7/shutil.py", line 302, in move os.unlink(src) OSError: [Errno 13] Permission denied: '/usr/lib64/python2.7/site- packages/matplotlib-1.2.0-py2.7.egg-info' Can we please fix this?