Skip to content

shivamkalra/awesome_sharcnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Sharcnet

Bootstrap python2.7 environment on Sharcnet

Following will build python2.7 using gcc compiler.

cd ~
wget https://raw.githubusercontent.com/shivamkalra/awesome_sharcnet/master/scripts/install_python2.7.8
chmod +x ~/install_python2.7.8
~/install_python2.7.8
  • It will install python2.7.8 and pip in ~/.python2.7.8.
  • Make sure, you do not load any python modules in your .bashrc. Add following to your .bashrc.
module unload gcc python intel openmpi
module load gcc

export PYPATH="$HOME/.python2.7.8"
export PATH=${PYPATH}/bin:${PATH}
export LD_LIBRARY_PATH=${PYPATH}/lib:${LD_LIBRARY_PATH}
export -n LDFLAGS
  • Re login or source .bashrc and you will have locally build python environment activated.
  • Use pip to install virtualenv and install your favorite packages in virtual environment. You can source this virtual environment from your job submission script.
pip install virtualenv

# create virtual environment (it just creates a folder in directory of execution)
virtualenv irma-playground

# activate your virtual environment
source irma-playground/bin/activate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages