Getting Started¶
System Requirements¶
ImputeGAP is compatible with Python>=3.11 and Unix-compatible environment.
Installation¶
To install/update the latest version of ImputeGAP, run the following command:
pip install imputegap
Install WSL
To run ImputeGAP in a Unix-compatible environment on Windows, install the Windows Subsystem for Linux (WSL).
Search for
WSLin the Start menu to check if it’s already installed.If not, open
PowerShellasAdministrator.Run the following command:
wsl --install
Restart your computer once the installation completes.
Prepare Python 3.12 Environment
To ensure a proper Python setup, we recommend creating a dedicated Python environment for the project. Python 3.12 is a suitable and supported choice.
Step 1: Check Existing Python Version
Open your terminal and check the currently installed version of Python:
python3 --version
Step 2: Install Python 3.12
If needed, install Python 3.12 on your WSL system, follow these steps:
Update your package list and install prerequisites:
sudo apt-get update
sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev \
libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev \
tk-dev python3-tk libopenblas0 libarmadillo-dev software-properties-common python3-pip
Add the deadsnakes PPA and update:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
Install Python 3.12:
sudo apt-get install python3.12 python3.12-venv python3.12-dev
Verify the installation:
python3.12 --version
Install Python 3.12 Environment
Create a virtual environment:
python3.12 -m venv imputegap_env
Activate the virtual environment:
source imputegap_env/bin/activate
Install ImputeGAP
pip install imputegap
Prepare Python 3.12 Environment
To ensure a proper Python setup, we recommend creating a dedicated Python environment for the project. Python 3.12 is a suitable and supported choice.
Step 1: Check Existing Python Version*
Open your terminal and check the currently installed version of Python:
python3 --version
*Step 2: Install Python 3.12
If needed, install Python 3.12 on your system, follow these steps:
Update your package list and install prerequisites:
sudo apt-get update
sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev \
libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev \
tk-dev python3-tk libopenblas0 libarmadillo-dev software-properties-common python3-pip
Add the deadsnakes PPA and update:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
Install Python 3.12:
sudo apt-get install python3.12 python3.12-venv python3.12-dev
Verify the installation:
python3.12 --version
Install Python 3.12 Environment
Create a virtual environment:
python3.12 -m venv imputegap_env
Activate the virtual environment:
source imputegap_env/bin/activate
Install ImputeGAP
pip install imputegap
Prepare Python 3.12 Environment
To ensure a proper Python setup, we recommend creating a dedicated Python environment for the project. Python 3.12 is a suitable and supported choice.
Install Xcode Command Line Tools (required by Homebrew):
xcode-select --install
Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Update Homebrew, install prerequisites, and install Python 3.12:
brew update
brew install openssl zlib ncurses readline sqlite gdbm berkeley-db@5 bzip2 expat xz tcl-tk openblas armadillo python@3.12 python-tk@3.12
Verify the installation:
python3.12 --version
Install Python 3.12 Environment
Create a virtual environment:
python3.12 -m venv imputegap_env
Activate the virtual environment:
source imputegap_env/bin/activate
Install ImputeGAP
pip install imputegap
⚠️ Warning
Depending on your macOS security settings, you may need to manually approve the C++ wrapper library (.dylib file) in System Settings → Privacy & Security before it can be loaded.
If you would like to extend the library, you can install from source:
git init
git clone https://github.com/eXascaleInfolab/ImputeGAP
cd ./ImputeGAP
pip install -e .
Launch Docker from desktop of terminal. To make sure it is running:
docker version
Pull the ImputeGAP Docker image:
docker pull qnater/imputegap:1.1.21
Run the Docker container:
docker run -p 8888:8888 qnater/imputegap:1.1.21
Open the following link:
http://127.0.0.1:8888
Launch Docker from desktop of terminal. To make sure it is running:
docker version
Pull the ImputeGAP Docker image:
docker pull qnater/imputegap:1.1.21
Run the Docker container:
docker run -p 8888:8888 qnater/imputegap:1.1.21
Open the following link:
http://127.0.0.1:8888
Launch Docker from desktop of terminal. To make sure it is running:
docker version
Pull the ImputeGAP Docker image:
docker pull --platform linux/x86_64 qnater/imputegap:1.1.21
Run the Docker container:
docker run -p 8888:8888 qnater/imputegap:1.1.21
Open the following link:
http://127.0.0.1:8888
Troubleshooting¶
If you face any problems, please open an issue here: https://github.com/eXascaleInfolab/ImputeGAP/issues