[issue43195] Same userbase for 32bit and 64bit install on Windows causing conflicts

Eryk Sun report at bugs.python.org
Wed Feb 10 22:58:20 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

The conflict between 32-bit and 64-bit user site-packages was resolved in issue 41627, starting with Python 3.10. It's not practical to backport this change to existing 3.9 installations. 

The "nt_user" install scheme was changed to use the config variable "py_version_nodot_plat". For example:

    >>> sysconfig.get_path('purelib', 'nt_user', expand=False)
    '{userbase}/Python{py_version_nodot_plat}/site-packages'

This variable is based on sys.winver (i.e. the version number of the Python DLL), which includes a "-32" suffix in 32-bit Python. For example:

    >>> sys.winver
    '3.10-32'
    >>> sysconfig.get_config_var('py_version_nodot_plat')
    '310-32'

----------
nosy: +eryksun
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Relocate user site packages on Windows 32-bit

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43195>
_______________________________________


More information about the Python-bugs-list mailing list