---
title: "Prerequisites"
description: "Prepare your environment from Parts 1 and 2 and install the Aerospike Python client."
---

# Prerequisites

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

This tutorial assumes you completed Parts 1 and 2 in the provided [feature\_store\_tutorial.ipynb notebook](https://aerospike.com/notebooks/feature_store_tutorial.ipynb).

## Continue your notebook

Open `feature_store_tutorial.ipynb`. Part 3 starts at **Cell 14**.

::: tip
If your kernel was restarted, re-run the setup and class definition cells from Part 1. You do not need to re-run all of Part 2 unless the saved model is missing. If `./models/trip_decline_risk_lr` is not found, re-run Part 2’s model training and save steps.
:::

## Prepare your environment

1.  Run `Cell 14` to confirm Spark is active and your saved model path is available.

Cell 14: Prepare Spark and saved model path

```python
import os

model_path = "./models/trip_decline_risk_lr"

model_exists = os.path.exists(model_path)

print(f"Spark version:  {spark.version}")

print(f"Model path:     {model_path}")

print(f"Saved model:    {'found' if model_exists else 'NOT FOUND - run Part 2 first'}")
```

Expected output

```plaintext
Spark version:  3.5.3

Model path:     ./models/trip_decline_risk_lr

Saved model:    found
```

::: model path note
The model check uses `./models/trip_decline_risk_lr`, which is resolved relative to your notebook’s current working directory (`os.getcwd()`). If this prints `NOT FOUND` but you saved the model in Part 2, switch back to the directory that contains `feature_store_tutorial.ipynb` (or use the correct absolute path).
:::

If the model path prints `NOT FOUND`, re-run the save step from Part 2.

## Install the Aerospike Python client

Part 3 introduces a new dependency: the [Aerospike Python client](https://aerospike.com/docs/develop/client/python/). You’ll learn why in the next section.

1.  Run `Cell 15` to install and import the Aerospike Python client.

Cell 15: Install and import the Aerospike Python client

```python
%pip install aerospike

import aerospike

print("Aerospike Python client import OK")
```

Expected output

```plaintext
Aerospike Python client import OK
```

You’re ready to start building the serving pipeline.

::: undefined
-   I have prepared Spark and a saved model artifact for Part 3.
-   I have installed the Aerospike Python client.
:::

[Previous  
Part 3: Model Serving](https://aerospike.com/docs/develop/model-serving) [Next  
The Aerospike Python client](https://aerospike.com/docs/develop/model-serving/step/1/part/0/aerospike-client)