This is an automated email from the ASF dual-hosted git repository.

mykolabodnar pushed a commit to branch DATALAB-2372
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 612343755324f6986179daa99ab70cc286cb7375
Author: bodnarmykola <[email protected]>
AuthorDate: Wed Jun 23 12:43:49 2021 +0300

    [DATALAB-2372] - [GCP] Deeplearning libs installation fixed
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py 
b/infrastructure-provisioning/src/general/lib/os/fab.py
index 5260a8a..e1c1392 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -105,6 +105,8 @@ def install_pip_pkg(requisites, pip_version, lib_group, 
dataengine_service = Fal
     try:
         if dataengine_service:
             install_command = pip_version
+        elif os.environ['conf_deeplearning_cloud_ami'] == 'true' and 
os.environ['application'] == 'deeplearning':
+            install_command = 'conda activate && {}'.format(pip_version)
         else:
             install_command = 'source /opt/python/python{0}/bin/activate && 
/opt/python/python{0}/bin/pip{1}'.format(
                 os.environ['notebook_python_venv_version'], 
os.environ['notebook_python_venv_version'][:3])

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to