Changes between Initial Version and Version 1 of cypress/AnacondaInstallPackage


Ignore:
Timestamp:
08/23/16 10:25:58 (8 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/AnacondaInstallPackage

    v1 v1  
     1==== Install Packages to Anaconda Python ====
     2
     3'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.
     4There is a workaround. Here, for example, we want to add 'vtk' python wrapper library.
     5
     6 {{{
     7conda install vtk
     8}}}
     9
     10But 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
     11
     12 {{{
     13conda create -n my_root --clone=/share/apps/anaconda/2/2.5.0
     14}}}
     15
     16'my_root' is the name of environment that you decide.
     17Then,
     18
     19 {{{
     20source activate my_root
     21}}}
     22
     23Finally, you can install the package,
     24
     25 {{{
     26conda install vtk
     27}}}
     28
     29In case you encounter "Error: 'conda' can only be installed into the root environment", try
     30
     31{{{
     32conda remove conda-build
     33conda remoce conda-env
     34conda update -all
     35conda install vtk
     36}}}
     37
     38From next time, to use Anaconda python with your environment,
     39 {{{
     40module load anaconda
     41source activate my_root
     42}}}
     43You have to state above commands in your script when you run python on batch jobs.
     44