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


Groups > comp.lang.python > #108262

Re: Slight problems with python in Windows

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Peter Toye <python@ptoye.com>
Newsgroups comp.lang.python
Subject Re: Slight problems with python in Windows
Date Sat, 7 May 2016 09:49:48 +0100
Lines 55
Message-ID <mailman.452.1462610981.32212.python-list@python.org> (permalink)
References <57495789.20160506122201@ptoye.com> <CAKJDb-OzX5MRRZEf2=ggC9y9BqbgWZ41Gqgctw6Xh6xOOrDShA@mail.gmail.com> <1046065648.20160507094948@ptoye.com>
Reply-To Peter Toye <python@ptoye.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de Uc6G4HJIxNu2Tl00JLruyAvseexkD8dRBliuoP2W/neg==
Return-Path <python@ptoye.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'newbie': 0.05; "'python": 0.07; '(so': 0.07; 'friday,': 0.07; 'subject:Windows': 0.09; 'directory)': 0.09; 'overwrite': 0.09; 'path.': 0.09; 'reinstall': 0.09; 'subject:problems': 0.09; 'writable': 0.09; 'bug': 0.10; 'python': 0.10; 'files.': 0.13; 'subject:python': 0.14; 'instead.': 0.15; '"test': 0.16; '2016': 0.16; 'from:addr:python': 0.16; 'help?': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reproduce': 0.16; 'uninstalling': 0.16; 'wrote:': 0.16; 'obviously': 0.16; 'exists': 0.18; '&gt;': 0.18; 'thanks.': 0.18; 'windows': 0.20; 'to:2**1': 0.21; 'install,': 0.22; 'names.': 0.22; 'file.': 0.22; 'trying': 0.22; 'am,': 0.23; 'installation': 0.23; "python's": 0.23; 'specified': 0.23; 'thus': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; "i've": 0.25; "doesn't": 0.26; 'installed': 0.26; 'connected': 0.27; 'error': 0.27; 'fri,': 0.27; 'invoke': 0.29; 'issues.': 0.29; 'path,': 0.29; 'spaces': 0.29; "i'm": 0.30; 'guess': 0.31; "can't": 0.32; 'though,': 0.32; 'maybe': 0.33; 'changed': 0.33; 'problem': 0.33; 'adjust': 0.33; 'machine.': 0.33; "i'll": 0.33; 'file': 0.34; 'previous': 0.34; 'files,': 0.35; 'installing': 0.35; 'something': 0.35; 'according': 0.36; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'tool': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'agree': 0.37; 'thanks': 0.37; 'one,': 0.37; 'itself': 0.38; 'version': 0.38; 'delete': 0.38; 'log': 0.38; 'files': 0.38; 'goes': 0.39; 'test': 0.39; 'does': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'still': 0.40; 'called': 0.40; 'some': 0.40; 'your': 0.60; 'received:network': 0.61; 'hope': 0.61; 'received:uk': 0.61; 'default': 0.61; 'programs': 0.62; 'more': 0.63; 'information': 0.63; 'due': 0.65; 'believe': 0.66; 'header :Reply-To:1': 0.67; 'received:109': 0.75; '(according': 0.84; 'odd,': 0.84; 'panel,': 0.84; 'peter,': 0.84; 'pip': 0.84; 'anymore,': 0.95
X-Priority 3 (Normal)
In-Reply-To <CAKJDb-OzX5MRRZEf2=ggC9y9BqbgWZ41Gqgctw6Xh6xOOrDShA@mail.gmail.com>
X-Content-Filtered-By Mailman/MimeDel 2.1.22
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <1046065648.20160507094948@ptoye.com>
X-Mailman-Original-References <57495789.20160506122201@ptoye.com> <CAKJDb-OzX5MRRZEf2=ggC9y9BqbgWZ41Gqgctw6Xh6xOOrDShA@mail.gmail.com>
Xref csiph.com comp.lang.python:108262

Show key headers only | View raw


Thanks Zachary.

I should have put a newbie warning as I've never used or installed Python before, so some of what you've written goes over my head! 


Friday, May 6, 2016, 5:17:23 PM, you wrote:

> Hi Peter,

> On Fri, May 6, 2016 at 6:22 AM, Peter Toye <python@ptoye.com> wrote:
>> I'm trying to install Python under Windows 7 so that I can use git-review and have found a few niggling issues.
>>
>> 1) Apparently (according to the git-review pages) pip has a problem with directories with spaces in their names. Python's default installation directory is under Program Files. I agree that this is a pip issue rather than a Python one, but maybe a warning message would help?

> I don't believe this is true anymore, I've successfully used pip with
> 3.5 installed in Program Files, and also just now in a test venv named
> "test venv".  Do note that with installation in Program Files, you get
> the benefits of the install directory being writable only to
> administrators, but also the drawbacks: only administrators can use
> pip to install to the global site-packages.  You can use either 'pip
> --user', or create a venv in a directory writable to you and use it.
> Also note that you can't use "pip.exe" to upgrade pip itself since it
> can't overwrite "pip.exe" while it's in use; use 'python -m pip'
> instead.

My information is obviously out of date - I'll try to get it changed in the git-review wiki.


>> 2) According to the Programs and Files section of the Windows Control Panel, installing Python also installs something called the Python Launcher. When I try to remove this (so I can reinstall Python in a better directory) is comes up with an error message:

> The Python Launcher is a very handy tool called 'py.exe' which makes
> it much easier to use more than one version of Python on a Windows
> machine.  In an all users install, py.exe is installed to C:\Windows
> and is thus always available on PATH, so you can invoke Python 3.5 by
> calling 'py -3.5' without having to adjust your PATH.  The error
> message is odd, though, would you mind trying to reproduce it and
> opening a bug at bugs.python.org?

When I have time.This has already taken longer than it should...

>> Error opening installation log file.  Verify that the specified log file location exists and is writable.
>>
>> After reinstalling I now have 2 copies of the launcher.... I hope it doesn't give me any problems.

> It shouldn't.  The launcher only installs 2 files, py.exe and pyw.exe
> (counterpart to pythonw.exe), both in C:\Windows.

>> 3) After uninstalling Python the installation directory is still there with a few files in it (possibly connected with the previous issue). Can I just delete it?

> Yes, that should be fine.  I would guess it's still there due to pip
> artifacts in Lib\ and Scripts\.

> Hope this helps,

It does - thanks.

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


Thread

Re: Slight problems with python in Windows Peter Toye <python@ptoye.com> - 2016-05-07 09:49 +0100

csiph-web