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

References <mlcll0$o3b$1@dont-email.me> <CAPTjJmp0up1Db1RTi3z2TfWrZjZ-0pLiTNJMzG4Mf5K0ECp0Uw@mail.gmail.com>
From Zachary Ware <zachary.ware+pylist@gmail.com>
Date 2015-06-11 14:41 -0500
Subject Re: Python 3.5.0b2 - permission error after pip upgrade
Newsgroups comp.lang.python
Message-ID <mailman.408.1434051689.13271.python-list@python.org> (permalink)

Show all headers | 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