Installation and Initialization

Last updated: 2026-02-26 15:36:53

Operation Steps

Environment Dependencies

Currently, Python 3.4 and later versions are supported.

Installing Tikit

Tikit has been built in containers for Notebook and training tasks on Tencent Cloud TI-ONE Platform (TI-ONE), so you do not need to install Tikit.
In a non-public-cloud TI-ONE environment, the method for installing Tikit is as follows:
Install dependencies:
#centos:

sudo yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib

#ubuntu:

sudo apt-get update
sudo apt-get install -y libsasl2-dev
Method 1: Install Tikit using pip (recommended).
pip3 install -U tikit
Method 2: Install Tikit using an offline method. You can download the installation package from https://pypi.org/project/tikit/, and then use the whl file or source code to install Tikit:
pip3 install tikit-1.0.0-py3-none-any.whl

# Alternatively, install Tikit after the source code is decompressed:
python3 setup.py install

Using Tikit

1. Prepare the secret_id and secret_key information.
Log in to Tencent Cloud and obtain them from the page as follows:

2. Complete the initialization operation and call the function.

from tikit.client import Client

# Initialize the client. In the environment of the public cloud TI-ONE (including Notebook and training tasks), you do not need to enter the region information because it is already available in the environment variables.
client = Client("your_secret_id", "your_secret_key", "<region>")