You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/02/14 18:16:53 UTC
[incubator-datalab] branch 2.5.1-tcpc-deployment updated: [DATALAB-2698]: fixed install_venv_pip_pkg usage
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch 2.5.1-tcpc-deployment
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/2.5.1-tcpc-deployment by this push:
new 88ed674 [DATALAB-2698]: fixed install_venv_pip_pkg usage
88ed674 is described below
commit 88ed674d573f3aa0a055fcf78848fc6d058c61d5
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 14 20:16:01 2022 +0200
[DATALAB-2698]: fixed install_venv_pip_pkg usage
---
.../src/general/lib/os/debian/notebook_lib.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 1e5c13b..a746411 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -397,18 +397,18 @@ def install_tensor(os_user, cuda_version, cuda_file_name,
def ensure_venv_libs(os_user, libs):
if not exists(datalab.fab.conn, '/home/' + os_user + '/.ensure_dir/venv_libs_ensured'):
- datalab.fab.conn.install_venv_pip_pkg(libs)
+ datalab.fab.install_venv_pip_pkg(libs)
datalab.fab.conn.sudo('touch /home/' + os_user + '/.ensure_dir/venv_libs_ensured')
def ensure_pytorch(os_user, gpu=True):
if not exists(datalab.fab.conn, '/home/' + os_user + '/.ensure_dir/pytorch_ensured'):
if gpu:
- datalab.fab.conn.install_venv_pip_pkg('torch==1.10.2+cu113 torchvision==0.11.3+cu113 '
+ datalab.fab.install_venv_pip_pkg('torch==1.10.2+cu113 torchvision==0.11.3+cu113 '
'torchaudio==0.10.2+cu113 -f '
'https://download.pytorch.org/whl/cu113/torch_stable.html')
else:
- datalab.fab.conn.install_venv_pip_pkg('torch==1.10.2+cpu torchvision==0.11.3+cpu torchaudio==0.10.2+cpu -f '
+ datalab.fab.install_venv_pip_pkg('torch==1.10.2+cpu torchvision==0.11.3+cpu torchaudio==0.10.2+cpu -f '
'https://download.pytorch.org/whl/cpu/torch_stable.html')
datalab.fab.conn.sudo('touch /home/' + os_user + '/.ensure_dir/pytorch_ensured')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org