Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1631b9b

Browse files
committed
Issue #19734: venv still needs isolated mode
1 parent 6fd12f2 commit 1631b9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/venv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _setup_pip(self, context):
237237
# We run ensurepip in isolated mode to avoid side effects from
238238
# environment vars, the current directory and anything else
239239
# intended for the global Python environment
240-
cmd = [context.env_exe, '-m', 'ensurepip', '--upgrade',
240+
cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade',
241241
'--default-pip']
242242
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
243243

0 commit comments

Comments
 (0)