Thanks to visit codestin.com Credit goes to github.com
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 0b62964 commit 2cd70ffCopy full SHA for 2cd70ff
1 file changed
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