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.

classification
Title: windows installer not adding PYTHONHOME
Type: crash Stage: resolved
Components: Installation, Windows Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Mm, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2016-09-14 06:42 by Mm, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg276387 - (view) Author: Memo (Mm) Date: 2016-09-14 06:42
Hi,

when i run python from elevated CMD it is failed to start and give error system codecs not found...

The problem is python installer for windows "python-3.5.2-amd64.exe" is not adding the PYTHONHOME environment variable.

When I manually added it problem solved.

Thanks,
msg276410 - (view) Author: Eryk Sun (eryksun) * (Python triager) Date: 2016-09-14 09:54
PYTHONHOME should only be set temporarily for special cases. If running python.exe without PYTHONHOME fails to find the standard library, then your system is misconfigured. For additional help with this problem, ask on either python-list or python-win32.
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72329
2016-09-14 09:54:06eryksunsetstatus: open -> closed

components: + Windows

nosy: + paul.moore, tim.golden, eryksun
messages: + msg276410
resolution: not a bug
stage: resolved
2016-09-14 07:36:39berker.peksagsetnosy: + zach.ware, steve.dower
2016-09-14 06:42:16Mmcreate