How to Install joblib in Python

v1.5.3 Data & Science Python >=3.9

Lightweight pipelining with Python functions

Install pip install joblib

What is joblib?

Lightweight pipelining with Python functions

The homepage of joblib with user documentation is located on:

To get the latest code using git, simply type::

If you don't have git installed, you can download a zip of the latest code:

Quick Start

Minimal example to get started with joblib:

import joblib

print(joblib.__version__)

Installation

pip (standard)

pip install joblib

Virtual environment (recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install joblib

pip3

pip3 install joblib

conda

conda install -c conda-forge joblib

Poetry

poetry add joblib

Verify the Installation

After installing, confirm the package is available:

python -c "import joblib; print(joblib.__version__)"

If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.

Installation Errors

Common errors when installing joblib with pip.

ModuleNotFoundError: No module named 'joblib'

Cause: The package is not installed in the current Python environment.

Fix: Run pip install joblib. If using a virtual environment, ensure it is activated first.

ModuleNotFoundError: No module named 'joblib' (installed but still failing)

Cause: pip installed the package into a different Python than the one running your script.

Fix: Use python -m pip install joblib to install into the interpreter you are running.

ImportError: cannot import name 'X' from 'joblib'

Cause: The function or class does not exist in the installed version.

Fix: Check the version with pip show joblib and upgrade with pip install --upgrade joblib.

pip: command not found

Cause: pip is not in PATH or Python was not added to PATH during installation.

Fix: Try python -m pip install joblib. On macOS/Linux try pip3.

PermissionError: [Errno 13] Permission denied

Cause: No write access to the system Python package directory.

Fix: Use a virtual environment, or add --user: pip install --user joblib

SSL: CERTIFICATE_VERIFY_FAILED

Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.

Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org joblib

MemoryError when loading data

Cause: Dataset is too large to fit in RAM.

Fix: Read in chunks, filter columns on load, or consider Polars/Dask for out-of-core processing.

Recent Releases

VersionReleased
1.5.3 latest 2025-12-15
1.5.2 2025-08-27
1.5.1 2025-05-23
1.5.0 2025-05-03
1.4.2 2024-05-02

Full release history on PyPI →

Manage joblib

Upgrade to latest version

pip install --upgrade joblib

Install a specific version

pip install joblib==1.5.3

Uninstall

pip uninstall joblib

Check what is installed

pip show joblib

Last updated: 2026-04-11 • Data from PyPI