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 1448e2a commit 9b789e5Copy full SHA for 9b789e5
Lib/venv/__init__.py
@@ -128,6 +128,11 @@ def create_if_needed(d):
128
context.prompt = '(%s) ' % prompt
129
create_if_needed(env_dir)
130
executable = sys._base_executable
131
+ if not executable: # see gh-96861
132
+ raise ValueError('Unable to determine path to the running '
133
+ 'Python interpreter. Provide an explicit path or '
134
+ 'check that your PATH environment variable is '
135
+ 'correctly set.')
136
dirname, exename = os.path.split(os.path.abspath(executable))
137
context.executable = executable
138
context.python_dir = dirname
0 commit comments