diff --git a/runhouse/resources/packages/package.py b/runhouse/resources/packages/package.py index 54cbcb4e4..5f434e595 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(