Changes between Version 12 and Version 13 of cypress/Python


Ignore:
Timestamp:
Aug 23, 2016 10:26:48 AM (5 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/Python

    v12 v13  
    2424==== Install Packages to Anaconda Python ====
    2525See [[AnacondaInstallPackage|here]].
    26 
    27 '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.
    28 There is a workaround. Here, for example, we want to add 'vtk' python wrapper library.
    29 
    30  {{{
    31 conda install vtk
    32 }}}
    33 
    34 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
    35 
    36  {{{
    37 conda create -n my_root --clone=/share/apps/anaconda/2/2.5.0
    38 }}}
    39 
    40 'my_root' is the name of environment that you decide.
    41 Then,
    42 
    43  {{{
    44 source activate my_root
    45 }}}
    46 
    47 Finally, you can install the package,
    48 
    49  {{{
    50 conda install vtk
    51 }}}
    52 
    53 In case you encounter "Error: 'conda' can only be installed into the root environment", try
    54 
    55 {{{
    56 conda remove conda-build
    57 conda remoce conda-env
    58 conda update -all
    59 conda install vtk
    60 }}}
    61 
    62 From next time, to use Anaconda python with your environment,
    63  {{{
    64 module load anaconda
    65 source activate my_root
    66 }}}
    67 You have to state above commands in your script when you run python on batch jobs.
    68 
    69 
    7026
    7127== Running Python Interactively ==