Skip to main content

Install the Aerospike client


Prerequisites

The Python client for Aerospike works with Python 3.7 - 3.11 and supports the following operating systems:

  • macOS 11 and 12
  • CentOS 7 Linux
  • Red Hat Enterprise Linux (RHEL) 8 and 9
  • Amazon Linux 2023
  • Debian 11 and 12
  • Ubuntu 20.04 and 22.04

The client is also verified to run on the following operating systems, but we do not officially support them. We do not distribute wheels or prioritize fixing bugs for these operating systems:

  • Alpine Linux

Install

Verify that Python and pip for your specific Python interpreter are installed on your system.

Run the following commands to install the Aerospike Python client.

pip install aerospike

or specify a client version (ie: 4.0.0 to connect to servers running version 4.9 and later).

caution

Aerospike Python Client 5.x must be used with Aerospike server 4.9 or later.

pip install aerospike==<Aerospike Python Version>

Installing the client with pip for the system default Python may cause permissions issues when copying necessary files. To avoid those issues, specify the --user option to install the client for only the current user:

pip install --user aerospike

Development

For information about developing the Python client, see Manually Building the Python Client for Aerospike.