8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a978e2f commit f4be544Copy full SHA for f4be544
Lib/venv/__init__.py
@@ -115,6 +115,11 @@ def create_if_needed(d):
115
context.prompt = '(%s) ' % prompt
116
create_if_needed(env_dir)
117
executable = sys._base_executable
118
+ if not executable: # see gh-96861
119
+ raise ValueError('Unable to determine path to the running '
120
+ 'Python interpreter. Provide an explicit path or '
121
+ 'check that your PATH environment variable is '
122
+ 'correctly set.')
123
dirname, exename = os.path.split(os.path.abspath(executable))
124
context.executable = executable
125
context.python_dir = dirname
0 commit comments