Changes between Version 3 and Version 4 of cypress/AnacondaInstallPackage


Ignore:
Timestamp:
03/27/18 15:41:45 (7 years ago)
Author:
hoang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/AnacondaInstallPackage

    v3 v4  
    11==== Install Packages to Anaconda Python ====
    22
     3For this example, we assume you have loaded the "anaconda3/5.1.0", but you can use another version if you want.
     4
     5{{{
     6module load anaconda3/5.1.0
     7}}}
     8
    39'conda' is the command to add packages to Anaconda python distribution. However, since you don't have a permission in /share/apps/anaconda, it won't work.
    4 There is a workaround. Here, for example, we want to add 'vtk' python wrapper library.
     10There is a workaround. Here, for example, we want to add 'vtk' python wrapper library. You try:
    511
    612 {{{
     
    814}}}
    915
    10 But you will see an error message with an instruction for the workaround. Following the instruction, you have to clone the python environment into your home directory by
     16But you will see an error message with an instruction for the workaround. Following the instruction, you have to clone the python environment. By default, your conda environments are located in your home directory. But, we recommend you to use your group project directory. Setting the CONDA_ENVS_PATH environment variable will tell Anaconda where to place and look for your conda environments. For example:
     17
     18{{{
     19export CONDA_ENVS_PATH=/lustre/project/mygroup/myuser/conda-envs
     20}}}
     21
     22will put your conda environments at the folder /lustre/project/mygroup/myuser/conda-envs (you may have to create this folder if it does not exist).
     23
     24Then, you can create a new personal conda environment:
    1125
    1226 {{{
    13 conda create -n my_root --clone=/share/apps/anaconda/2/2.5.0
     27conda create -n my_root python
    1428}}}
    1529
     
    3751From next time, to use Anaconda python with your environment,
    3852 {{{
    39 module load anaconda
     53module load anaconda3/5.1.0
     54export CONDA_ENVS_PATH=/lustre/project/mygroup/myuser/conda-envs
    4055source activate my_root
    4156}}}