Changes between Version 7 and Version 8 of cypress/Python


Ignore:
Timestamp:
06/30/16 17:44:37 (6 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/Python

    v7 v8  
    2020
    2121A complete list of packages available though Anaconda can be found [http://docs.continuum.io/anaconda/pkg-docs here].
     22
     23
     24==== Install Packages to Anaconda Python ====
     25'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.
     26There is a workaround. Here, for example, we want to add 'vtk' python wrapper library.
     27
     28 {{{
     29conda install vtk
     30}}}
     31
     32But you will see an error message with an instruction for the workaround. First clone the python environment into your home directory by
     33
     34 {{{
     35conda create -n my_root --clone=/share/apps/anaconda/2/2.5.0
     36}}}
     37
     38then,
     39
     40 {{{
     41source activate my_root
     42}}}
     43
     44Finally, you can install the package,
     45
     46 {{{
     47conda install vtk
     48}}}
     49
     50In case you encounter "Error: 'conda' can only be installed into the root environment", try
     51
     52{{{
     53conda remove conda-build
     54conda remoce conda-env
     55conda update -all
     56conda install vtk
     57}}}
     58
     59From next time, to use Anaconda python,
     60 {{{
     61module load anaconda
     62source activate my_root
     63}}}
    2264
    2365== Installing Packages ==