This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sarmar11
Recipients paul.moore, sarmar11, steve.dower, tim.golden, zach.ware
Date 2019-12-23.11:10:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577099422.36.0.0774544638319.issue39122@roundup.psfhosted.org>
In-reply-to
Content
Environment variable PYTHONUSERBASE is not set during customized Python Installation.

Python installer 3.7.6(x64) / Windows 10

Check 1: Customize the installation to install Python in C:\Python37 for all users. 
  Result: Access Denied using pip

Check 2: Check 1: Customize the installation to install Python in C:\Program Files\Python37 for all users (default). 
  Result: pip works, but error appears trying to install anything with pip. For example:
>>pip install virtualenv
 WARNING: The script virtualenv.exe is intalled in 'C:\Users\XXX\AppData\Roaming\Python\Python37\Scripts' which is not on path

By default APPDATA matches with C:\Users\XXX\AppData\Roaming
and PYHTONUSERBASE is empty

-----------------------------------------------------------------

I've found the path constructor in \Python37\Lib\site.py (_getuserbase)

So I try the following steps:
- Create folder with full control in C:\ (C:\Python)
- Set environment variable PYTHONUSERBASE=C:\Python
- Install Python for all users in C:\Python\Python37

That works for me.
History
Date User Action Args
2019-12-23 11:10:22sarmar11setrecipients: + sarmar11, paul.moore, tim.golden, zach.ware, steve.dower
2019-12-23 11:10:22sarmar11setmessageid: <1577099422.36.0.0774544638319.issue39122@roundup.psfhosted.org>
2019-12-23 11:10:22sarmar11linkissue39122 messages
2019-12-23 11:10:21sarmar11create