Slight problems with python in Windows

2016-05-06 Thread Peter Toye
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?

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: 

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.

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?
 
Regards,

Peter
mailto:pyt...@ptoye.com
www.ptoye.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Slight problems with python in Windows

2016-05-07 Thread Peter Toye
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  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.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Slight problems with python in Windows

2016-05-07 Thread Peter Toye
Zachary,

An update - see below.

Best regards,

Peter
mailto:pyt...@ptoye.com
www.ptoye.com


>> 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?

>> Error opening installation log file.  Verify that the specified log file 
>> location exists and is writable.
>>

I tried uninstalling the launcher before uninstalling Python and it worked OK. 
Obviously there's a dependency here. Or the Python uninstaller should also 
uninstall the launcher first.

But one other oddity. For reasons I don't quite follow, the page 
https://www.python.org/downloads/  downloads the 32-bit version of Python, 
which is what I first installed without knowing any better. Then I noticed that 
the installation had (32-bit) in it, poked around a bit and found the 64-bit 
version. When I installed that the launcher still said (32-bit). Possible bug 
here, and certainly a very misleading web page?
-- 
https://mail.python.org/mailman/listinfo/python-list