Prepare your local environment for Tailer
Before installing the Tailer SDK package, you need to prepare your local environment.
Last updated
Before installing the Tailer SDK package, you need to prepare your local environment.
Last updated
Tailer SDK runs on Windows, Linux, and macOS. Tailer SDK requires Python. Supported versions are 3.8 or higher.
Before installing Tailer SDK, a number of tasks need to be performed depending if you're planning to use a Windows or macOS/Linux environment.
To install Python:
Access this page: https://www.python.org/downloads/release/python-382/
Select and download the installer for the release (3.8 or higher) that matches your operating system.
Launch the installer.
Select the Customize installation option, and make sure you check the Add Python to environment variables checkbox.
To check if Python installation was successful, open a terminal, and run the following command:
The Python release number displays.
To create a working folder for Tailer SDK:
Access the working folder of your choice:
Create a folder for Tailer SDK and access it:
Your Windows environment is now ready. You can proceed with the installation.
To change the default shell to Bash:
Run the following command:
Close your terminal and reopen it.
Run the following command to make sure the default shell is now bash:
If you get the following result, Bash has been installed successfully:
We recommend that you create the Tailer SDK working folder in your home root directory.
To create and access the working folder, run the following commands:
Examples in this documentation will assume that you're working in the tailer folder created at this step.
While current versions of macOS and Linux include a version of Python 2, Tailer SDK only supports Python 3.8 or higher, so you need to upgrade to a newer version.
To install Python, you first need to install Homebrew, a package management system that simplifies software installation:
Run the following command:
Make sure the installation was successful by running the following command:
Now that Homebrew is installed, you can upgrade to Python 3.
To upgrade Python:
Check your current version of Python by running the following command:
If your version is inferior to 3.8, install the latest version of Python 3 by running the following command:
To confirm which version of Python 3 was installed, run the following command:
Virtual environments let you have a stable, reproducible, and portable environment. You are in control of which packages versions are installed and when they are upgraded. You can have as many venvs as you want.
You can install venv to your host Python by running this command in your terminal:
To use venv in your project, in your terminal, create a new project folder, cd to the Tailer folder in your terminal, and run the following command:
Now that you have created the virtual environment, you will need to activate it before you can use it in your project. On a mac, to activate your virtual environment, run the code below:
Don't forget to change username by the name of your user. Keep this line on a notepad. You need it each time you open a new terminal to use the Tailer SDK set on the venv.
Your macOS/Linux environment is now ready. You can proceed with the installation.
To confirm which version of Python 3 was installed, run the following command: