File
> New
> Terminal
By default, Posit uses Python 3.6. To check available versions, copy-paste:
ls -1d /opt/python/*
Navigate to the location where you plan to save your work, e.g., create a folder called DSI
in your home directory $HOME
mkdir $HOME/DSI
cd $HOME/DSI
Clone the repository:
git clone https://github.com/BCCDC-DSI/RADD.git
Optional, list the items in the repo
cd RADD
ls -lstr
Navigate to the location where your requirements.txt
is saved; e.g.
cd $HOME/DSI/RADD/workflows/part2_version2
Create a virtual environment (VE). Three options:
Option A:
conda create --name raddpt2 python=3.12
Option B: Store the VE under your folder
mkdir $HOME/myvenv/
conda create --prefix $HOME/myvenv/raddpt2 python=3.12
Option C: Build without use of conda
python3 -m venv raddpt2
Activate virtual environment and upgrade pip
:
Option A or B:
conda activate raddpt2
conda install pip
Option C:
source raddpt2\bin\activate
pip install --upgrade pip
Build:
pip install -r requirements.txt
git config --global user.email "you@example.com"
git config --global user.name "your_github_username"
Note: conda
is not available by default. On 2024-10-03, we were able to download and install:
miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
conda config --set auto_activate_base false
eval "$($HOME/miniconda3/bin/conda shell.bash hook)"