Re: Python install failing. Install log is available.

2021-05-21 Thread Michael Torrie
On 5/21/21 8:25 AM, Mats Wichmann wrote:
> An install for all users will drop it into someplace different - by 
> default at the top of the drive, so e.g. C:\Python39.

I just did an install of 3.9 on Windows 10. There was an option to
install the launcher for all users but no option for installing Python
for all users if you go through with the default install options.  When
I chose to install the launcher for all users, it still installed Python
in the my user local AppData... path.

In order to select to install for all users, I had to choose custom
options during the install. Then I could choose to install for all
users, and it let me select a path which defaulted to C:\Program
Files\Python39.  As well I selected to place Python in the path, which
it did.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python install failing. Install log is available.

2021-05-21 Thread Mats Wichmann

On 5/21/21 4:21 AM, jan via Python-list wrote:

OK, but

1. should the installer work for administrator + all users or not?

2. if not, should the installer work for me (a non-admin) and install
python correctly and successfully for my account if I run it in my
account, not the admin?


It should, and for many, it does.

An ordinary install, not "for all users", defaults to your own
AppData\Local\Programs\Python  - the pattern you see in your 
Administrator install. So you don't seem to have installed that one for 
all users.


I don't think you want to do a user-install using the administrator 
account. If you tell it to add to PATH, I believe it adds to the user 
variables in this case, so other accounts won't see that.  The Python 
launcher should help with this part of the problem, as Terry said, but 
only if other users are able to work with things installed in admin's 
account-local locations.


An install for all users will drop it into someplace different - by 
default at the top of the drive, so e.g. C:\Python39.

--
https://mail.python.org/mailman/listinfo/python-list


Re: Python install failing. Install log is available.

2021-05-21 Thread jan via Python-list
OK, but

1. should the installer work for administrator + all users or not?

2. if not, should the installer work for me (a non-admin) and install
python correctly and successfully for my account if I run it in my
account, not the admin?

thanks

jan

On 20/05/2021, Terry Reedy  wrote:
> On 5/20/2021 7:06 AM, jan via Python-list wrote:
>
>> This time it's simply not installing correctly when run as
>> administrator, and not at all when run as non-administrator.
>>
>> As administrator, it's not installing for other users as I believe it
>> should.
>>
>> It's certainly not adding the python path correctly *for all users*
>
>> C:\WINDOWS\system32>whoami
> ...
>> Any thoughts?
>
> On Windows, use the py launcher to launch python.  It was added as the
> solution to problems with adding python paths, including problems with
> multiple installs and those with removing them.
>
>
> --
> Terry Jan Reedy
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python install failing. Install log is available.

2021-05-20 Thread Terry Reedy

On 5/20/2021 7:06 AM, jan via Python-list wrote:


This time it's simply not installing correctly when run as
administrator, and not at all when run as non-administrator.

As administrator, it's not installing for other users as I believe it should.

It's certainly not adding the python path correctly *for all users*



C:\WINDOWS\system32>whoami

...

Any thoughts?


On Windows, use the py launcher to launch python.  It was added as the 
solution to problems with adding python paths, including problems with 
multiple installs and those with removing them.



--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Python install failing. Install log is available.

2021-05-20 Thread jan via Python-list
Hi,

I've usually had problems installing python, typically pip breaking.

This time it's simply not installing correctly when run as
administrator, and not at all when run as non-administrator.

As administrator, it's not installing for other users as I believe it should.

It's certainly not adding the python path correctly *for all users*
(install option "add python to environment variables"), from a command
console run as admin:

C:\WINDOWS\system32>whoami
antik\administrator

C:\WINDOWS\system32>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files\dotnet\;C:\Program
Files\TortoiseGit\bin;C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\Administrator\AppData\Local\Programs\Python\Python39\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\.dotnet\tools

It's there, but from a non-admin console (I work just a normal user):

C:\Users\jan>whoami
antik\jan

C:\Users\jan>echo %path%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files\dotnet\;C:\Program
Files\TortoiseGit\bin;C:\Users\jan\AppData\Local\Microsoft\WindowsApps;C:\Users\jan\AppData\Local\Programs\Git\cmd

So no python path added.

When install is run as non-administrator it seems to fail outright due
to lack of privileges.  The install log for this non-admin is
available on request (I'd rather not attach it as it contain have
sensitive info, but can post it publicly if really wanted. It's 60K).

I tried elevating my non-admin account to admin then re-running the
python installer, it broke.

Trying to reinstall it has now lost all associations with the .py
extension. I don't know what's going on.

My build depends on python and obviously that's failing now.  I've
worked around it by downloading and unzipping python embedded, setting
the file association and hardcoding file paths, but that's certainly
not ideal.

Any thoughts?

Using python-3.9.5-amd64.exe, OS is win 2016 server eval, fresh install.
-- 
https://mail.python.org/mailman/listinfo/python-list