Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.74 KB

environment_setup.md

File metadata and controls

52 lines (41 loc) · 1.74 KB

Setup python environment on LDG

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:

    1. 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)
    1. 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:

    1. Install python3.10
    (base) $ mamba install python==3.10.13
    1. Install pipx:
    (base) $ pip install pipx
    1. Install poetry:
    (base) $ pipx install poetry
    1. 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