From 1279cbb610b724571862f47563e54f037253ba1e Mon Sep 17 00:00:00 2001 From: Rohin Bhasin Date: Thu, 18 Jul 2024 14:23:49 -0400 Subject: [PATCH] Quote pip installs correctly. --- runhouse/resources/packages/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runhouse/resources/packages/package.py b/runhouse/resources/packages/package.py index 54cbcb4e4f..5f434e595a 100644 --- a/runhouse/resources/packages/package.py +++ b/runhouse/resources/packages/package.py @@ -129,7 +129,7 @@ def _pip_install_cmd( f"{str(Path(self.install_target.local_path).absolute())}" + install_args ) else: - install_cmd = self.install_target + install_args + install_cmd = f'"{self.install_target}" {install_args}' install_cmd = f"pip install {self._install_cmd_for_torch(install_cmd, cluster)}" install_cmd = self._prepend_python_executable(