Changes between Version 3 and Version 4 of cypress/AnacondaInstallPackage
- Timestamp:
- 03/27/18 15:41:45 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/AnacondaInstallPackage
v3 v4 1 1 ==== Install Packages to Anaconda Python ==== 2 2 3 For this example, we assume you have loaded the "anaconda3/5.1.0", but you can use another version if you want. 4 5 {{{ 6 module load anaconda3/5.1.0 7 }}} 8 3 9 '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. 10 There is a workaround. Here, for example, we want to add 'vtk' python wrapper library. You try: 5 11 6 12 {{{ … … 8 14 }}} 9 15 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 16 But 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 {{{ 19 export CONDA_ENVS_PATH=/lustre/project/mygroup/myuser/conda-envs 20 }}} 21 22 will 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 24 Then, you can create a new personal conda environment: 11 25 12 26 {{{ 13 conda create -n my_root --clone=/share/apps/anaconda/2/2.5.027 conda create -n my_root python 14 28 }}} 15 29 … … 37 51 From next time, to use Anaconda python with your environment, 38 52 {{{ 39 module load anaconda 53 module load anaconda3/5.1.0 54 export CONDA_ENVS_PATH=/lustre/project/mygroup/myuser/conda-envs 40 55 source activate my_root 41 56 }}}