SlideShare a Scribd company logo
Conda environment system &
how to use it on CSUC machines
Víctor Pérez
29/ 10 / 2020
Index
1. What is conda?
2. Scope of the project
3. How to use conda
4. Conda environments
5. Package management
6. Python through conda
7. R through conda
What is conda?
• Originally: Anaconda, a distribution of Python
including common scientific packages
https://www.anaconda.com/
• Extended to include R and R packages, scientific
libraries, other software, etc.
• conda: core package manager for the Anaconda
project
What is conda?
• conda installs and updates binary versions of
Python and R packages from its own (or third
party) repositories
• It is an alternative to other repository systems,
like pip for Python or CRAN for R
• It is also a way to manage dependencies for
Python and R packages
But conda isn't...
• A repository of system software packages
(such as apt or yum)
• A repository of source code
• A replacement for environment modules
• Exhaustive or infallible
Scope of the project
• Python
• R
• Jupyter, Spyder, Rstudio...
• NumPy, SciPy, Pandas, Numba, Dask...
• Scikit-learn, TensorFlow, Theano...
• Matplotlib, Bokeh, Datashader, Holoviews...
• A variety of external libraries and tools
Conda channels
• Channels are thematic collections of packages,
useful to avoid version conflicts (equivalent to
repositories)
• Examples:
– pkgs/main: default channel
– conda-forge:large collection of third party packages
– bioconda:software for bioinformatics
– r: tailored to R users
How to use conda
• We need to load an environment module to
configure conda.
module load conda/3
Python 2 (legacy): module load conda/2
How to use conda
• Then we use the command conda (+ action) to
run it:
conda list
conda activate
conda create
conda search
conda install
conda update
conda help
Conda environments
• Inside a given installation of conda (conda/2 or
conda/3), there are a number of environments
• Environments are profiles: each will have a
different list of packages and versions installed
• There is a default base env, shared envs
(accessible to all users) and private envs
(accesible to the current user only)
Activating/Deactivating environments
• To see a list of environments: conda env list
• To load an env: conda activate <env_name>
• To unload: conda deactivate
Activating/Deactivating environments
• To see the contents of an env: conda list [-n env_name]
(by default, currently activated environment)
• Note: source activate and source deactivate are obsolete
Shared environments
• Maintained by our HPC team, available to all
users:
– base: Python and common Python packages
– bio-computation: Python, Biopython, Bioperl and
libraries for bioinformatics
– machine-learning:Python and R for ML, including
Scikit-learn, TensorFlow and Keras
– machine-learning-gpu: same but with GPU support
– quantum-chem: Python tools for QC, including MDtraj,
PySCF, libcint and libxc
– genetics: R tools for NGS, such as DESeq2, edgeR or
LIMMA
Private environments
• Users can create their own private envs (stored at
$HOME/.conda/envs) which won't we visible for
other users
• To create a new empty environment: conda
create -n <env_name>
• To create a new environment with packages
preinstalled in it: conda create –n <env_name>
[list of packages]
Private environments
• To install one or more packages in a private env: conda
install [-n env_name] <packages>
• If no env is specified, installed in currently active
environment
• Version and channel can also be specified: conda install
[-n env_name] [-C channel] <package=version>
• Important note: users don't have permissions to install
packages in shared environments!
Private environments
• To update packages in an environment: conda
update [-n env_name] <specific packages> or
conda update [-n env_name] --all
• To uninstall packages: conda remove [-n
env_name] <packages>
• To completely delete a private environment:
conda remove -n <env_name> --all
Using Python through conda
#!/bin/bash
#SBATCH –p std
#SBATCH –N 1
#SBATCH –n 1
module load conda/3
conda activate machine-learning
python example.py
Using R through conda
#!/bin/bash
#SBATCH –p std
#SBATCH –N 1
#SBATCH –n 1
module load conda/3
conda activate machine-learning
Rscript example.R
Using R through conda
• It is possible to install R packages to the
private library directory using CRAN, although
it requires configuring a proxy:
export http_proxy=XXX.XXX.XXX.XXX:XXXX
export https_proxy=XXX.XXX.XXX.XXX:XXXX
> install.packages("example")
Best practices
• Creating a private env tailored to your needs is
usually more efficient than using shared envs
• Avoid clutter in your private environments; it's
better to create multiple single-purpose
environments than one large environment with
too many packages
• Be mindful of version collision when updating
environments; if you don't need to update, don't
https://confluence.csuc.cat/display
/HPCKB/Training

More Related Content

PDF
Conda environment system how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Conda environment system & how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Containers with systemd-nspawn
Gábor Nyers
 
PDF
Full system roll-back and systemd in SUSE Linux Enterprise 12
Gábor Nyers
 
DOCX
Isolating an applications using LXC – Linux Containers
Venkat Raman
 
PDF
Lxc- Linux Containers
samof76
 
PDF
Linux Containers & Docker
Jumping Bean
 
Conda environment system how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Conda environment system & how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Containers with systemd-nspawn
Gábor Nyers
 
Full system roll-back and systemd in SUSE Linux Enterprise 12
Gábor Nyers
 
Isolating an applications using LXC – Linux Containers
Venkat Raman
 
Lxc- Linux Containers
samof76
 
Linux Containers & Docker
Jumping Bean
 

What's hot (20)

PDF
CoreOS, or How I Learned to Stop Worrying and Love Systemd
Richard Lister
 
PDF
Docker internals
Rohit Jnagal
 
PDF
Systemd mlug-20140614
Susant Sahani
 
PPTX
First steps on CentOs7
Marc Cortinas Val
 
PPTX
Docker advance1
Gourav Varma
 
PDF
Linux Containers From Scratch
joshuasoundcloud
 
PDF
Docker 1.11 @ Docker SF Meetup
Docker, Inc.
 
PDF
Systemd: the modern Linux init system you will learn to love
Alison Chaiken
 
PDF
Consul and docker swarm cluster
Eueung Mulyana
 
PDF
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Michelle Antebi
 
PPTX
Docker advance topic
Kalkey
 
PDF
Systemd evolution revolution_regression
Susant Sahani
 
PDF
Cgroups, namespaces, and beyond: what are containers made from? (DockerCon Eu...
Jérôme Petazzoni
 
PDF
Introduction to systemd
Yusaku OGAWA
 
PDF
Effective service and resource management with systemd
David Timothy Strauss
 
PDF
The age of orchestration: from Docker basics to cluster management
Nicola Paolucci
 
PPTX
Docker: Aspects of Container Isolation
allingeek
 
PDF
Your first dive into systemd!
Etsuji Nakai
 
PDF
Docker allocating resources
Mohammadreza Amini
 
PDF
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
CoreOS, or How I Learned to Stop Worrying and Love Systemd
Richard Lister
 
Docker internals
Rohit Jnagal
 
Systemd mlug-20140614
Susant Sahani
 
First steps on CentOs7
Marc Cortinas Val
 
Docker advance1
Gourav Varma
 
Linux Containers From Scratch
joshuasoundcloud
 
Docker 1.11 @ Docker SF Meetup
Docker, Inc.
 
Systemd: the modern Linux init system you will learn to love
Alison Chaiken
 
Consul and docker swarm cluster
Eueung Mulyana
 
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Michelle Antebi
 
Docker advance topic
Kalkey
 
Systemd evolution revolution_regression
Susant Sahani
 
Cgroups, namespaces, and beyond: what are containers made from? (DockerCon Eu...
Jérôme Petazzoni
 
Introduction to systemd
Yusaku OGAWA
 
Effective service and resource management with systemd
David Timothy Strauss
 
The age of orchestration: from Docker basics to cluster management
Nicola Paolucci
 
Docker: Aspects of Container Isolation
allingeek
 
Your first dive into systemd!
Etsuji Nakai
 
Docker allocating resources
Mohammadreza Amini
 
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
Ad

Similar to Conda environment system how to use it on CSUC machines (20)

PPTX
Conda environment system & how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
The Conda environment system and how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Effectively using Open Source with conda
Travis Oliphant
 
PDF
Conda cheatsheet
MoviesOnly
 
PDF
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Aaron Meurer
 
PPTX
25532813.pptx
MohammedAlYemeni1
 
PPTX
Bioconda and the Conda Package Manager
EMBL Australia Bioinformatics Resource
 
PDF
Installing Anaconda Distribution of Python
Jatin Miglani
 
PPTX
2022.03.23 Conda and Conda environments.pptx
Philip Ashton
 
PDF
Elevate Your Enterprise Python and R AI, ML Software Strategy with Anaconda T...
DevOps.com
 
PDF
Setting-Up Python Environment (Jupyter Notebook)
NopphawanTamkuan
 
PDF
Using Conda in Oracle Data Science.pdf
Nicholas Toscano
 
PDF
Conda and Bioconda
Hoffman Lab
 
PDF
conda-cheatsheetaaaaaaaaaaaaaaaaaaaa.pdf
RahulKodag1
 
PDF
Python Versions and Dependencies Made Easy
Sebastian Witowski
 
PPTX
Top 10 Anaconda Interview Questions and Answers.pptx
zaid157839
 
PPTX
anaconda.pptx
WassilaMelizou
 
PDF
Virtualenv
WEBdeBS
 
PDF
Introduction to the Python conda package manager
Damien Garaud
 
PDF
Intro to Python Programming
ssuser65af26
 
Conda environment system & how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
The Conda environment system and how to use it on CSUC machines
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Effectively using Open Source with conda
Travis Oliphant
 
Conda cheatsheet
MoviesOnly
 
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Aaron Meurer
 
25532813.pptx
MohammedAlYemeni1
 
Bioconda and the Conda Package Manager
EMBL Australia Bioinformatics Resource
 
Installing Anaconda Distribution of Python
Jatin Miglani
 
2022.03.23 Conda and Conda environments.pptx
Philip Ashton
 
Elevate Your Enterprise Python and R AI, ML Software Strategy with Anaconda T...
DevOps.com
 
Setting-Up Python Environment (Jupyter Notebook)
NopphawanTamkuan
 
Using Conda in Oracle Data Science.pdf
Nicholas Toscano
 
Conda and Bioconda
Hoffman Lab
 
conda-cheatsheetaaaaaaaaaaaaaaaaaaaa.pdf
RahulKodag1
 
Python Versions and Dependencies Made Easy
Sebastian Witowski
 
Top 10 Anaconda Interview Questions and Answers.pptx
zaid157839
 
anaconda.pptx
WassilaMelizou
 
Virtualenv
WEBdeBS
 
Introduction to the Python conda package manager
Damien Garaud
 
Intro to Python Programming
ssuser65af26
 
Ad

More from CSUC - Consorci de Serveis Universitaris de Catalunya (20)

PDF
Novetats a l'Anella Científica, per Maria Isabel Gandia
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
IPCEI Cloud - Using European Open-Source Technologies to Build a Sovereign, M...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
L'impacte geopolític a les TIC, per Genís Roca
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Pirineus OnDemand: l'accés fàcil al càlcul científic del CSUC
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Funcionament del servei de càlcul científic del CSUC
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
El servei de càlcul científic del CSUC: presentació
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PPTX
RDM Training: Publish research data with the Research Data Repository
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PPTX
Facilitar a gestão, a visibilidade e a reutilização dos dados de investigação...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Construint comunitat i governança: ​ el rol del CSUC en el cicle de vida de l...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Formació RDM: Publicar dades de recerca amb el Repositori de Dades de Recerca
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Publica les teves dades de recerca al Repositori de Dades de Recerca
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Com fer un pla de gestió de dades amb l'eiNa DMP (en català)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Los datos abiertos: movimiento en expansión
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Dataverse as a FAIR Data Repository (Mercè Crosas)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
From Automation to Autonomous Networks with AI
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Jornada de presentació de les noves infraestructures de càlcul i emmagatzematge
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Les subvencions del Departament de Cultura per a projectes relatius al patrim...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
Presentació dels serveis d'eScire (patrocinador)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
PDF
L'Arxiu Històric de la Biblioteca del Centre de Lectura de Reus
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Novetats a l'Anella Científica, per Maria Isabel Gandia
CSUC - Consorci de Serveis Universitaris de Catalunya
 
IPCEI Cloud - Using European Open-Source Technologies to Build a Sovereign, M...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
L'impacte geopolític a les TIC, per Genís Roca
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Pirineus OnDemand: l'accés fàcil al càlcul científic del CSUC
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Funcionament del servei de càlcul científic del CSUC
CSUC - Consorci de Serveis Universitaris de Catalunya
 
El servei de càlcul científic del CSUC: presentació
CSUC - Consorci de Serveis Universitaris de Catalunya
 
RDM Training: Publish research data with the Research Data Repository
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Facilitar a gestão, a visibilidade e a reutilização dos dados de investigação...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Com fer un pla de gestió de dades amb l'eiNa DMP (en anglès)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Construint comunitat i governança: ​ el rol del CSUC en el cicle de vida de l...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Formació RDM: Publicar dades de recerca amb el Repositori de Dades de Recerca
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Publica les teves dades de recerca al Repositori de Dades de Recerca
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Com fer un pla de gestió de dades amb l'eiNa DMP (en català)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Los datos abiertos: movimiento en expansión
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Dataverse as a FAIR Data Repository (Mercè Crosas)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
From Automation to Autonomous Networks with AI
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Jornada de presentació de les noves infraestructures de càlcul i emmagatzematge
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Les subvencions del Departament de Cultura per a projectes relatius al patrim...
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Presentació dels serveis d'eScire (patrocinador)
CSUC - Consorci de Serveis Universitaris de Catalunya
 
L'Arxiu Històric de la Biblioteca del Centre de Lectura de Reus
CSUC - Consorci de Serveis Universitaris de Catalunya
 

Recently uploaded (20)

PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 

Conda environment system how to use it on CSUC machines

  • 1. Conda environment system & how to use it on CSUC machines Víctor Pérez 29/ 10 / 2020
  • 2. Index 1. What is conda? 2. Scope of the project 3. How to use conda 4. Conda environments 5. Package management 6. Python through conda 7. R through conda
  • 3. What is conda? • Originally: Anaconda, a distribution of Python including common scientific packages https://www.anaconda.com/ • Extended to include R and R packages, scientific libraries, other software, etc. • conda: core package manager for the Anaconda project
  • 4. What is conda? • conda installs and updates binary versions of Python and R packages from its own (or third party) repositories • It is an alternative to other repository systems, like pip for Python or CRAN for R • It is also a way to manage dependencies for Python and R packages
  • 5. But conda isn't... • A repository of system software packages (such as apt or yum) • A repository of source code • A replacement for environment modules • Exhaustive or infallible
  • 6. Scope of the project • Python • R • Jupyter, Spyder, Rstudio... • NumPy, SciPy, Pandas, Numba, Dask... • Scikit-learn, TensorFlow, Theano... • Matplotlib, Bokeh, Datashader, Holoviews... • A variety of external libraries and tools
  • 7. Conda channels • Channels are thematic collections of packages, useful to avoid version conflicts (equivalent to repositories) • Examples: – pkgs/main: default channel – conda-forge:large collection of third party packages – bioconda:software for bioinformatics – r: tailored to R users
  • 8. How to use conda • We need to load an environment module to configure conda. module load conda/3 Python 2 (legacy): module load conda/2
  • 9. How to use conda • Then we use the command conda (+ action) to run it: conda list conda activate conda create conda search conda install conda update conda help
  • 10. Conda environments • Inside a given installation of conda (conda/2 or conda/3), there are a number of environments • Environments are profiles: each will have a different list of packages and versions installed • There is a default base env, shared envs (accessible to all users) and private envs (accesible to the current user only)
  • 11. Activating/Deactivating environments • To see a list of environments: conda env list • To load an env: conda activate <env_name> • To unload: conda deactivate
  • 12. Activating/Deactivating environments • To see the contents of an env: conda list [-n env_name] (by default, currently activated environment) • Note: source activate and source deactivate are obsolete
  • 13. Shared environments • Maintained by our HPC team, available to all users: – base: Python and common Python packages – bio-computation: Python, Biopython, Bioperl and libraries for bioinformatics – machine-learning:Python and R for ML, including Scikit-learn, TensorFlow and Keras – machine-learning-gpu: same but with GPU support – quantum-chem: Python tools for QC, including MDtraj, PySCF, libcint and libxc – genetics: R tools for NGS, such as DESeq2, edgeR or LIMMA
  • 14. Private environments • Users can create their own private envs (stored at $HOME/.conda/envs) which won't we visible for other users • To create a new empty environment: conda create -n <env_name> • To create a new environment with packages preinstalled in it: conda create –n <env_name> [list of packages]
  • 15. Private environments • To install one or more packages in a private env: conda install [-n env_name] <packages> • If no env is specified, installed in currently active environment • Version and channel can also be specified: conda install [-n env_name] [-C channel] <package=version> • Important note: users don't have permissions to install packages in shared environments!
  • 16. Private environments • To update packages in an environment: conda update [-n env_name] <specific packages> or conda update [-n env_name] --all • To uninstall packages: conda remove [-n env_name] <packages> • To completely delete a private environment: conda remove -n <env_name> --all
  • 17. Using Python through conda #!/bin/bash #SBATCH –p std #SBATCH –N 1 #SBATCH –n 1 module load conda/3 conda activate machine-learning python example.py
  • 18. Using R through conda #!/bin/bash #SBATCH –p std #SBATCH –N 1 #SBATCH –n 1 module load conda/3 conda activate machine-learning Rscript example.R
  • 19. Using R through conda • It is possible to install R packages to the private library directory using CRAN, although it requires configuring a proxy: export http_proxy=XXX.XXX.XXX.XXX:XXXX export https_proxy=XXX.XXX.XXX.XXX:XXXX > install.packages("example")
  • 20. Best practices • Creating a private env tailored to your needs is usually more efficient than using shared envs • Avoid clutter in your private environments; it's better to create multiple single-purpose environments than one large environment with too many packages • Be mindful of version collision when updating environments; if you don't need to update, don't