Code Monkey home page Code Monkey logo

rcac-conda-env's Introduction

rcac-conda-env: A tool for simplifying Python package installation on HPC clusters

Due to limited user-level permissions on managed clusters, installing and maintaining Python packages becomes a challenging task for novice users. This script uses Anaconda environments and environment modules (Lmod) to simplify this process. There are three simple steps to install and use Python packages using rcac-conda-env:

  1. Create an Anaconda environment using rcac-conda-env. During the process, the script automatically creates module file for using the environment.
  2. Load the module generated by rcac-conda-env. By default modules are generated in $HOME/privatemodules. You will need to add it to your $MODULEPATH.
  3. Now use conda or pip to install your Python package. Once the installation finishes, you can directly import it in your script. No need to run conda init or conda activate.

Prerequisites

  • You must have Lmod module software installed and configured on your system. Currently, rcac-conda-env generates module files in Lua format only. If you need to use TCL modules or would like to contribute a patch, please contact the maintainers.
  • Anaconda must be installed as a module. The script assumes that $CONDA_ENVS_PATH is defined in your Anaconda module and points to a writable directory, otherwise conda create -n my_env command may fail.

Usage

User guide for rcac-conda-env is provided as a manual page with this repository. You will need to add the share directory to your $MANPATH.

  $ export PATH=/path/to/rcac-conda-env:$PATH
  $ export MANPATH=/path/to/rcac-conda-env/share/man:$MANPATH
  $ man rcac-conda-env

A shortened version of usage instructions can be obtained with --help option.

  $ rcac-conda-env --help

Several use-cases of rcac-conda-env is given in this webpage: Python package installation

Citation

Kindly cite usage of this tool by pointing to this repository.

Amiya K Maji and Lev Gorenstein. RCAC-CONDA-ENV: A tool for simplifying Python package installation 
on HPC clusters, 2019. https://github.com/amaji/rcac-conda-env

Maintainers

This code is maintained by Amiya K Maji ([email protected]) and Lev Gorenstein ([email protected]).

© Purdue University, 2019

rcac-conda-env's People

Contributors

amaji avatar

Watchers

James Cloos avatar  avatar Lev Gorenstein avatar

rcac-conda-env's Issues

Check for prerequisites

Check for prerequisites, e.g., Lmod is installed or not, anaconda module is available or not, conda command is in my environment, PYTHONPATH is defined or not, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.