Installing Python, pip, and git on Linux

A step-by-step guide to setting up a development environment on Linux so you can start using ailia SDK.

Choose your OS: Windows · Mac · Linux

About this guide

To use ailia SDK from Python, you need three things: Python, pip, and git. Most Linux distributions ship with Python 3, so you only install what is missing with the package manager. This guide uses Ubuntu / Debian-based systems as an example.

Note: This guide uses apt for Ubuntu / Debian-based systems. On Fedora / RHEL-based systems use sudo dnf install, and on Arch-based systems use sudo pacman -S.

1. Checking and installing Python

First, check whether Python 3 is installed.

python3 --version

If a version is displayed, it is ready to use. If it is not installed, install it with the following commands.

sudo apt update
sudo apt install python3

2. Installing pip

On Linux, pip is often a separate package, so install it with the following command.

sudo apt install python3-pip

Once installed, verify it.

pip3 --version

3. Installing git

Install git to fetch the sample collection (ailia-models) from GitHub.

sudo apt install git

Once installed, verify it.

git --version

4. Installing and running ailia SDK

Once Python, pip, and git are in place, you can finally install ailia SDK. Run the following.

pip3 install ailia

Next, let's clone the sample collection and run it.

git clone https://github.com/ailia-ai/ailia-models.git
cd ailia-models
pip3 install -r requirements.txt
cd object_detection/yolox
python3 yolox.py -v 0

If object detection results are overlaid on your webcam feed, it worked. For more details on how to use it, see the ailia SDK getting started page.

Next steps: For faster execution on an NVIDIA GPU, see the CUDA Toolkit / cuDNN installation guide, or for a cross-platform GPU backend, see the Vulkan setup guide.