technical:recipes:tensorflow-in-virtualenv

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:recipes:tensorflow-in-virtualenv [2021-01-27 09:38] – [Create TensorFlow Virtualenv] anitatechnical:recipes:tensorflow-in-virtualenv [2021-03-08 19:26] (current) – [VALET Package Definition] anita
Line 1: Line 1:
 ====== TensorFlow Python Virtual Environment ====== ====== TensorFlow Python Virtual Environment ======
  
-This page documents the creation of a Python virtual environment (virtualenv) containing the Keras deep-learning suite on the Caviness HPC system((The steps should also work on the DARWIN HPC system, though with different package versions.)).  It assumes that the user is adding the software to the workgroup storage.+This page documents the creation of a Python virtual environment (virtualenv) containing the TensorFlow software for machine learning on the Caviness HPC system((The steps should also work on the DARWIN HPC system, though with different package versions.)).  It assumes that the user is adding the software to the workgroup storage.
  
 ===== Prepare Workgroup Directory ===== ===== Prepare Workgroup Directory =====
Line 126: Line 126:
     prefix: /work/my_workgroup/sw/tensorflow     prefix: /work/my_workgroup/sw/tensorflow
     description: TensorFlow Python environments     description: TensorFlow Python environments
 +    flags:
 +        - no-standard-paths
     actions:     actions:
         - action: source         - action: source
Line 149: Line 151:
     prefix: /work/my_workgroup/sw/tensorflow     prefix: /work/my_workgroup/sw/tensorflow
     description: TensorFlow Python environments     description: TensorFlow Python environments
 +    flags:
 +        - no-standard-paths
     actions:     actions:
         - action: source         - action: source
Line 169: Line 173:
                 - intel-python/2018u3:python3                 - intel-python/2018u3:python3
 </file> </file>
 +
 +<note warning>Make sure you modify ''prefix: /work/my_workgroup/sw/tensorflow'' for your workgroup (e.g. If my workgroup is ''it_nss'', then use I would use ''prefix: /work/it_nss/sw/tensorflow'').</note>
  
 <note tip>On Caviness after a user has used the ''workgroup'' command, VALET searches for package definitions in ''${WORKDIR}/sw/valet'' by default.  VALET also searches a ''~/.valet'' directory (in your home directory) if it exists, so that's the best location for personal package definitions -- for software you've installed in your home directory, for example.</note> <note tip>On Caviness after a user has used the ''workgroup'' command, VALET searches for package definitions in ''${WORKDIR}/sw/valet'' by default.  VALET also searches a ''~/.valet'' directory (in your home directory) if it exists, so that's the best location for personal package definitions -- for software you've installed in your home directory, for example.</note>
  • technical/recipes/tensorflow-in-virtualenv.1611758327.txt.gz
  • Last modified: 2021-01-27 09:38
  • by anita