Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92500

Re: Python 3.5.0b2 - permission error after pip upgrade

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <zachary.ware@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'upgraded': 0.05; '(so': 0.07; 'sure)': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'subject:error': 0.11; 'thu,': 0.15; 'andreas': 0.16; 'conflicting': 0.16; 'created.': 0.16; 'executable.': 0.16; 'people:': 0.16; 'subject:after': 0.16; 'subject:permission': 0.16; 'url:issues': 0.16; 'url:pip': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; 'skip': 0.18; 'windows': 0.20; 'permission': 0.20; 'skip:" 30': 0.20; 'fix': 0.21; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'am,': 0.23; 'appears': 0.23; '2015': 0.23; 'errors': 0.23; "i've": 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'installed': 0.26; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.28; 'command': 0.28; 'itself,': 0.29; 'locks': 0.29; 'subject:upgrade': 0.29; 'windows,': 0.29; 'workaround': 0.29; 'fri,': 0.31; 'run': 0.32; 'skip:_ 10': 0.32; 'probably': 0.32; 'problem': 0.33; 'recommended': 0.34; 'this?': 0.34; 'running': 0.34; 'file': 0.34; 'received:google.com': 0.34; 'fresh': 0.35; 'subject:: ': 0.37; '12,': 0.37; 'delete': 0.37; 'pm,': 0.39; 'sure': 0.40; "you'll": 0.61; 'more': 0.62; 'upgrading': 0.72; 'accurately': 0.84; 'pip': 0.84; 'short-hand': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=SD5zgAMVt2AG1mAgcYuw7eB1Y5jo3or9mlfvAiDWR5g=; b=jfY0h9qgZmaiS24H+8dRbAg/viFpp2dwDwz8MNi+sdA40jEYTHdPRe9PnZmD1I8gl7 jb0wUPvSigPBrGT2xorv6RUinsnkSsAFEzh9Uu6jrt24Qgp7a0on8AJ4H6ibkm16SfwX GQhRJSJwYUDzofoinokaQEpRQc2ZpCbIuzq8Xn0giGc2Wf/xutDDS1mE7zr2x4j5wPDl VKAfMD1XutrmRz2HIK2j1EIjoGoNFflDzDPih56lOOkXJsWkCv3vbYeOdH90TtyEgqne uZf1vwxQQjKI322LDW6zd+QT6ET2yUzWc2hZXeQVGgNYGFO2YHgj/3LAYBU4BHENYjrJ U7sw==
X-Received by 10.66.140.45 with SMTP id rd13mr3775825pab.10.1434051685864; Thu, 11 Jun 2015 12:41:25 -0700 (PDT)
MIME-Version 1.0
Sender zachary.ware@gmail.com
In-Reply-To <CAPTjJmp0up1Db1RTi3z2TfWrZjZ-0pLiTNJMzG4Mf5K0ECp0Uw@mail.gmail.com>
References <mlcll0$o3b$1@dont-email.me> <CAPTjJmp0up1Db1RTi3z2TfWrZjZ-0pLiTNJMzG4Mf5K0ECp0Uw@mail.gmail.com>
From Zachary Ware <zachary.ware+pylist@gmail.com>
Date Thu, 11 Jun 2015 14:41:05 -0500
X-Google-Sender-Auth 8Ueg4o09pueJc03TBqmrCeicOVY
Subject Re: Python 3.5.0b2 - permission error after pip upgrade
To Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.408.1434051689.13271.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1434051689 news.xs4all.nl 2831 [2001:888:2000:d::a6]:41766
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:92500

Show key headers only | View raw


On Thu, Jun 11, 2015 at 2:15 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Fri, Jun 12, 2015 at 4:57 AM, Andreas Balogh <baloand@gmail.com> wrote:
>> I've installed a fresh copy of Python 3.5.0b2 and - as recommended - upgraded pip. I don't
>> understand the reason for the permission errors as I am owner and have full control for
>> the temporary directory created.
>>
>> What can I do to fix this?
>>
>>
>> C:\Apps\Python35>pip install --upgrade pip
>>   File "C:\Apps\Python35\lib\shutil.py", line 377, in _rmtree_unsafe
>>     os.unlink(fullname)
>> PermissionError: [WinError 5] Access is denied:
>> 'C:\\Users\\Andreas\\AppData\\Local\\Temp\\pip-xf9kwi7g-uninstall\\apps\\python35\\scripts\\pip.exe'
>
> This is a problem with the way Windows locks running executables,
> conflicting with the way pip wants to delete (unlink) the executable.
> It appears to be a known issue by the pip people:
>
> https://github.com/pypa/pip/issues/2773
>
> One workaround is to skip the short-hand "pip" when upgrading pip
> itself, and type out the command in full:
>
> python -m pip install --upgrade pip
>
> Just make sure you run the same Python (so you may need to run
> "python3 -m pip etc", not sure) so it upgrades the right pip.

More accurately for Windows, you'll probably want 'py -3.5 -m pip ...'.

-- 
Zach

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python 3.5.0b2 - permission error after pip upgrade Andreas Balogh <baloand@gmail.com> - 2015-06-11 20:57 +0200
  Re: Python 3.5.0b2 - permission error after pip upgrade Chris Angelico <rosuav@gmail.com> - 2015-06-12 05:15 +1000
  Re: Python 3.5.0b2 - permission error after pip upgrade Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-06-11 14:41 -0500

csiph-web