Skip to content

Installing Kelvin SDK on macOS

Prerequisites

Getting started is straightforward. Ensure you have the following tools installed:

Installation Steps

Docker Installation

  1. Visit the Docker download page and download the latest Docker Desktop installation file suitable for your processor type. Safari may prompt you to allow the download.

    Download Docker

  2. After the download completes, run the installer. macOS will verify the file before the installation begins.

    Install Docker

  3. Once the installation is complete, drag and drop the Docker application into your Applications folder.

    Move Docker to Applications

  4. (Optional) You can open Docker Desktop. macOS may require you to confirm permission to run the application.

    Open Docker Desktop

Python Installation

  1. Go to the Python Downloads page for macOS and download the latest release of Python 3.

    Download Python

  2. Run the installer and follow the prompts to install Python 3 with the default settings.

    Install Python

  3. After installation, verify that Python 3 is installed correctly by opening a terminal window. You can find the terminal in Launchpad -> Other.

    Open Terminal

  4. Open a Terminal window and type the following command:

    python3 --version
    

    Ensure Python 3 is being used

    Make sure that Python 3 is being used. Python 2 may still be installed on your system, as shown in the screenshot below. Do not use Python 2; it is not supported, has known security vulnerabilities, and is incompatible with the Kelvin SDK.

    Check Python Version

Setting Up a Python Virtual Environment

It is strongly recommended to use a Python virtual environment for your Kelvin SDK projects. This helps prevent conflicts, dependency issues, and incompatibilities with other Python projects on your system.

  1. In the terminal, create a virtual environment by running:

    python3 -m venv kelvinai
    
  2. Activate the virtual environment with the following command:

    source kelvinai/bin/activate
    

    You should see (kelvinai) at the beginning of your terminal prompt, indicating that the virtual environment is active.

    Virtual Environment Active

Installing the Kelvin SDK

With the prerequisites installed and the virtual environment active, you can now install the Kelvin SDK.

  1. First, upgrade pip to the latest version:

    pip3 install --upgrade pip
    
  2. Install the Kelvin SDK:

    pip3 install kelvin-sdk
    

    Installation Issues

    If you encounter an error indicating that pip3 cannot find a version that satisfies kelvin-sdk, ensure you are using a supported version of Python.

    Check the latest supported Python versions on the Kelvin SDK package details page on PyPI.

  3. Finally, verify the installation by checking the Kelvin SDK version:

    kelvin --version
    

    Installation Complete

    Congratulations! You are now ready to start using the Kelvin SDK.

    Kelvin SDK Installation Success

Additional Resources

Here are some helpful links related to the Kelvin SDK installation: