Using virtualenv
From mn/bio/cees-bioinf
Revision as of 12:54, 28 April 2015 by Alexajo@uio.no (talk | contribs)
virtualenv is a tool to create isolated Python environments. See https://virtualenv.pypa.io/en/latest/index.html
Setting up virtualenv on the cod-nodes/abel
module load python2 virtualenv my_python_dir
will create locally a python tree.
Then you can run
cd my_python_dir ./bin/activate
And you're ready to go. Deactivating the environment
deactivate
This is a fix necessary for abel and the cod nodes, normally not necessary:
unset PYTHONPATH
Using an existing virtual env
cd my_python_dir ./bin/activate