From ba854aa53bf96eb3ab5ab17c74c160dadc379bd4 Mon Sep 17 00:00:00 2001 From: clearml <> Date: Mon, 23 Jun 2025 12:37:38 +0300 Subject: [PATCH] Fix fall back to system python should not change the python bin inside the new venv --- clearml_agent/helper/package/pip_api/venv.py | 1 - 1 file changed, 1 deletion(-) diff --git a/clearml_agent/helper/package/pip_api/venv.py b/clearml_agent/helper/package/pip_api/venv.py index a904803..3fa11b2 100644 --- a/clearml_agent/helper/package/pip_api/venv.py +++ b/clearml_agent/helper/package/pip_api/venv.py @@ -84,7 +84,6 @@ class VirtualenvPip(SystemPip, PackageManager): print("WARNING: virtualenv and venv failed with [{}] trying virtualenv with python [{}]".format( self.python, sys.executable)) self.python = str(sys.executable) - self._bin = Path(self.python) self.session.command( self.python, "-m", "virtualenv", self.path, *self.create_flags() ).check_call()