🛠 Installation
Language / 언어: English | 한국어
Requirements
- Python 3.10 or newer (
requires-python = ">=3.10,<4.0") - pip (comes with Python)
Check your Python version:
[NOTE] On some systems (for example macOS), the command is python3 instead of python. Use whichever prints a version of 3.10 or newer, and use the same command in the steps below.
[NOTE] On recent macOS versions, use Python 3.11 or newer. The newest SciPy for Python 3.10 (1.15.3) fails to import there with an ImportError from scipy.sparse.linalg, so import infer_ci fails too.
1. 🧪 Create and activate a virtual environment
A virtual environment keeps infer-ci and its dependencies separate from other Python projects. Create one inside your project directory:
Activate it:
# macOS / Linux:
source .venv/bin/activate
# Windows (PowerShell):
.venv\Scripts\Activate.ps1
# Windows (Command Prompt):
.venv\Scripts\activate.bat
When the environment is active, your terminal prompt starts with (.venv). Activate it again each time you open a new terminal. To leave the environment, run deactivate.
[TIP] Conda users: if your prompt shows (base), you are in the conda base environment. Avoid installing into base. Either create the virtual environment above, or create a dedicated conda environment:
2. 📦 Install the package (users)
OPTION A. [RECOMMENDED] Install from PyPI:
OPTION B. Install the latest development version directly from the GitHub repository:
3. ✅ Verify the installation
If the installation succeeded, this prints the installed version (for example 0.2.1). The package is installed as infer-ci, but it is imported in Python as infer_ci (with an underscore).
[NOTE] The first import can take a few seconds while Matplotlib builds its font cache. This happens only once.
Next, try the Quick Start.
🧑💻 Installation for developers
Use these options if you want to modify infer-ci, run its tests, or work from the source code. Create and activate a virtual environment first (see step 1).
1. 📥 Download or clone the repository
1.1. Prepare a projects directory (if it does not exist):
# Create projects directory:
mkdir -pv ~/workspaces/projects
# Enter into projects directory:
cd ~/workspaces/projects
1.2. Follow one of the options below [A], [B] or [C]:
OPTION A. Clone the repository:
OPTION B. Clone the repository (for DEVELOPMENT: git + ssh key):
OPTION C. Download source code:
- Download the archived zip file from releases.
- Extract it into the projects directory.
2. 📦 Install from the source code
[NOTE] Run these commands from the repository root (the directory that contains pyproject.toml). Choose one of the following methods [A ~ D]:
OPTION A. Install for the DEVELOPMENT environment (editable mode with test, build and docs dependencies):
OPTION B. Install from the downloaded source code:
# Install directly from the source code:
pip install .
# Or install in editable mode:
pip install -e .
OPTION C. Install from pre-built release files:
- Download the
.whlor.tar.gzfile from releases. - Install with pip:
# Install from .whl file:
pip install ./infer_ci-[VERSION]-py3-none-any.whl
# Or install from .tar.gz file:
pip install ./infer_ci-[VERSION].tar.gz
OPTION D. Copy the module into the project directory (for testing):
# Install python dependencies:
pip install -r ./requirements.txt
# Copy the module source code into the project:
cp -r ./src/infer_ci [PROJECT_DIR]
# For example:
cp -r ./src/infer_ci /some/path/project/
Staging builds. To test a pre-release published to TestPyPI:
Verify the installation the same way as in step 3 above.