Add notes to ImportError
for common issues
#127598
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-importlib
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
ImportError
s are very common, and almost always dependent on the interpreter initialization and/or environment setup. There are many common issues we could try to detect, and give users hints on the possible cause.Py_GIL_DISABLED
is not set on Windows #127294 (comment).cp313t-win_amd64.pyd
module is available, but we were looking for.cp313-win_amd64.pyd
site
initialization disabled (-S
)site
initialization disabled (-s
).
withPYTHONSAFEPATH
/-P
enabledPYTHON*
environment variables (-E
) butPYTHONPATH
orPYTHONHOME
are set (which users might be relying on)Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered: