This article will guide you to create an environment using Miniconda on a LANTA HPC system.
Table of Contents |
---|
Using Miniconda via Easybuild
Load Miniconda module
Use the
ml av Miniconda
command to see which version of Miniconda is available on the LANTA HPC system.Use the
ml Miniconda3/xx.xx.x
command to load the Miniconda version that you want to use. If you don't specify a version, the default version (D) is loaded, which is Miniconda3/22.11.1-1.
...
Code Block |
---|
username@lanta:~> conda env list # conda environments: # base /lustrefs/disk/modules/easybuild/software/Miniconda3/22.11.1-1 netcdf-py39 /lustrefs/disk/modules/easybuild/software/Miniconda3/22.11.1-1/envs/netcdf-py39 pytorch-1.11.0 /lustrefs/disk/modules/easybuild/software/Miniconda3/22.11.1-1/envs/pytorch-1.11.0 tensorflow-2.6.0 /lustrefs/disk/modules/easybuild/software/Miniconda3/22.11.1-1/envs/tensorflow-2.6.0 username@lanta:~> conda activate tensorflow-2.6.0 |
Creating an environment
...
Load Miniconda module
Use the
ml av Miniconda
command to see which version of Miniconda is available on the LANTA HPC system.Use the
ml Miniconda3/xx.xx.x
command to load the Miniconda version that you want to use. If you don't specify a version, the default version (D) is loaded, which is Miniconda3/22.11.1-1.
Code Block |
---|
username@lanta:~> ml av Miniconda
---------------------- /lustrefs/disk/modules/easybuild/modules/all -----------------------
Miniconda3/22.11.1-1
Use "module spider" to find all possible modules and extensions.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys".
username@lanta:~> ml Miniconda3/22.11.1-1 |
Create an environment
...
Use the conda create -n myenv
commands to create the conda environment with myenv name.
...
in the user’s home
Create an environment
Use the conda create -n myenv
commands to create the conda environment with myenv name.
Code Block |
---|
username@lanta:~> conda create -n myenv
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /your directory/envs/myenv
Proceed ([y]/n)? y
...
username@lanta:~> conda activate myenv
(myenv) username@lanta:~> |
Create an environment with a specific version of the packages
Install Jupyter and other packages in the myenv environment
...
Code Block |
---|
(myenv) username@lanta:~> conda install jupyter ... (myenv) username@lanta:~> conda install -c anaconda tensorflow-gpu ... |
Running Jupyter Notebook via ssh tunneling
Example script for running Jupyter Notebook
...
Code Block |
---|
http://127.0.0.1:8714/?token=2923d6fab4ef109f30e63a77014e632eed3fd2a5fa561929 |
...
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...