-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
venv.create() fails when sys._base_executable is empty #96861
Comments
This isn't a bug in |
I'm not so sure about that, the documentation describes that
I think it makes sense for venv to error out with a proper error message. For example start python using a full path or set a |
…ythonGH-96887) (cherry picked from commit 2cd70ff) Co-authored-by: Vinay Sajip <[email protected]>
…ythonGH-96887) (cherry picked from commit 2cd70ff) Co-authored-by: Vinay Sajip <[email protected]>
…GH-96887) (GH-96918) (cherry picked from commit 2cd70ff) Co-authored-by: Vinay Sajip <[email protected]> Co-authored-by: Vinay Sajip <[email protected]>
Bug report
venv.create()
fails whensys._base_executable
is empty.This happens when Python cannot determine the base_executable when it's started without a full path and
PATH
is empty:Your environment
Would it be possible to raise an exception when
sys._base_executable
is empty with a sane error message?Related to: python-poetry/install.python-poetry.org#43
The text was updated successfully, but these errors were encountered: