mirror of
https://github.com/clearml/clearml-agent
synced 2025-05-12 15:50:52 +00:00
Fix CLEARML_AGENT_SKIP_PIP_VENV_INSTALL fails to find python executable
This commit is contained in:
parent
a4315722ab
commit
c3590a53a8
@ -3199,6 +3199,10 @@ class Worker(ServiceCommandSection):
|
|||||||
if standalone_mode:
|
if standalone_mode:
|
||||||
self.package_api = VirtualenvPip(**package_manager_params)
|
self.package_api = VirtualenvPip(**package_manager_params)
|
||||||
else:
|
else:
|
||||||
|
if not Path(executable_name).is_file():
|
||||||
|
executable_name_path = find_executable(executable_name)
|
||||||
|
print("Interpreter '{}' found at '{}'".format(executable_name, executable_name_path))
|
||||||
|
executable_name = executable_name_path
|
||||||
# we can change it, no one is going to use it anyhow
|
# we can change it, no one is going to use it anyhow
|
||||||
package_manager_params['path'] = None
|
package_manager_params['path'] = None
|
||||||
package_manager_params['interpreter'] = executable_name
|
package_manager_params['interpreter'] = executable_name
|
||||||
|
Loading…
Reference in New Issue
Block a user