Poetry will be used to set the virtual environment of python and installing the packages used by DeepClean. On LDG, we will need to install Poetry under the base environment of conda and this conda should be the conda under $HOME/miniconda3/bin/conda
if you use miniconda. Or you can use mamba, the conda written in C++. You can use mamba under $HOME/miniforge3/bin/mamba
to manage the virtual environments created by conda or mamba. Here are the steps to install mamba(conda) and install poetry under base:
-
Install Mamba:
- Download the installer:
$ wget [https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh)
- Run the installer to install Mamba:
$ bash Miniforge3-Linux-x86_64.sh
and mamba will be installed under
$HOME/miniforge3/
by default. You run$ $HOME/miniforge3/bin/mamba init
to setup mamba in
$HOME/.bashrc
. 3. Activate base environment:$ mamba activate
-
Install Poetry:
- Install python3.10
(base) $ mamba install python==3.10.13
- Install pipx:
(base) $ pip install pipx
- Install poetry:
(base) $ pipx install poetry
- Check installation of poetry:
(base) $ poetry --version && which poetry
If poetry is installed correctly, the output will be
Poetry (version 1.7.1) ~/.local/bin/poetry