How To Install Joblib In Python

Joblib is a popular Python library used to effectively store, load, and execute large Python objects (like NumPy arrays). It simplifies multiprocessing and parallel computing jobs by providing elegant and straightforward utilities.

In this tutorial, we will discuss step-by-step instructions on how to install the Joblib library in Python.

Step 1: Verify Python and pip versions

Before installing Joblib, you need to make sure Python and pip (Python package manager) are successfully installed on your system.

Check if Python is installed by running the following command in your command prompt (Windows) or terminal (Linux/Mac):

Additionally, check if pip is installed by running:

If you don’t have Python or Pip installed, you can install them from the official Python website.

Step 2: Install Joblib

To install Joblib, run the following command in your command prompt or terminal:

Step 3: Verify Joblib installation

After the installation is completed, verify if Joblib is successfully installed. Run the following command in your terminal or command prompt:

If Joblib has been installed, you will see information about the installed version, author, and summary.

Step 4: Import Joblib in your Python code

Once the installation is complete, you can now use Joblib in your Python projects. To use it, simply import the library at the beginning of your Python script:

For example, if you want to store a large NumPy array as a Joblib file, your code may look like this:


In this tutorial, we provided a step-by-step guide on how to install and use the Joblib library in Python. Joblib is a powerful tool that can help speed up computation in your Python projects, especially when dealing with large data structures like NumPy arrays.