Install Kelvin SDK in Ubuntu¶
Requirements¶
To get started is also very easy. Just ensure you have Docker, Python 3 and Pip 3 installed. Specific installation information on each of these for Windows, Mac and Linux can be found here:
- Ubuntu: Minimum version 22.04 LTS. Supported up to 26.04 LTS. Always use a long term support release.
- Docker: Always use the latest version or at least version ≥ 24.0.7 - https://docs.docker.com/engine/install/.
- Python 3: Supported versions from 3.10 to 3.12.
- Pip 3: Provided by the
python3-pippackage and automatically included inside every Python virtual environment.
Installing¶
Docker¶
The Docker CE packages in the official Ubuntu repositories are old and it is strongly recommended you do not use these ones. To start make sure these are not installed on your computer.
| Remove Existing Installations | |
|---|---|
Now you install docker dependencies:
Install the docker authentication keys;
| Installing Docker Authentication Keys | |
|---|---|
Then add the Docker repository to your apt sources:
| Adding Docker Repositories | |
|---|---|
And now install the latest docker version:
| Installing Docker | |
|---|---|
Python¶
Normally Ubuntu already has Python 3 installed. You can check this by opening a terminal window and typing:
| Test Python | |
|---|---|
Use the Python version supplied by the official Ubuntu repositories. Every supported Ubuntu LTS release ships a Python version that works with the Kelvin SDK.
| Ubuntu Release | Default Python |
|---|---|
| 22.04 LTS | 3.10 |
| 24.04 LTS | 3.12 |
Install Python together with the virtual environment and pip packages:
Python Virtual Environment¶
Before installing the Kelvin SDK you must use a virtual python environment for your Kelvin SDK so that there are no conflicts, dependency issues or incompatibilities between Kelvin SDK and other python projects you work on.
In the Terminal window let's create a virtual environment and give it a name. In this case we will call it kelvinai.
| Create Virtual Python Environment | |
|---|---|
Then, you can activate it with this command:
| Activate Virtual Environment | |
|---|---|
Kelvin SDK¶
With all preconditions fulfilled you can now install the Kelvin SDK.
First upgrade pip to the latest version:
| Check Latest Version Pip | |
|---|---|
And now install Kelvin SDK:
| Install Kelvin SDK | |
|---|---|
If you get an error that pip3 can not find a version that satisfies kelvin-sdk, make sure you are running a version of Python that is supported by kelvin-sdk.
To check the latest supported Python versions see the kelvin-sdk package details at pypi - https://pypi.org/project/kelvin-sdk/.
And finally check the Kelvin SDK version:
| Check Kelvin SDK Version | |
|---|---|
Congratulations ! You are ready to start using the Kelvin SDK.
Other Related Links¶
Interesting links related to Kelvin SDK Installation
- Docker Website - https://www.docker.com/
- Python Website - https://www.python.org/
- VirtualEnv Package on Pypi - https://pypi.org/project/virtualenv/
- Kelvin SDK on Pypi - https://pypi.org/project/kelvin-sdk/