Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install trino via python pip




trino - Client for the Trino distributed SQL Engine, it belongs to Classifiers:

- Operating System :: MacOS
- Operating System :: MacOS :: MacOS X
- Operating System :: Microsoft :: Windows
- Programming Language :: Python :: Implementation :: CPython
- Programming Language :: Python :: Implementation :: PyPy
- Topic :: Database
- Topic :: Database :: Front-Ends

When you know about this project and you want to new install trino to support your project or you get trouble as ModuleNotFoundError: No module named "trino" or ImportError: cannot import name "trino" in your project, let follow this tutorial to install trino



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_trino_env

- Active the virtual environment

test_trino_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_trino_env

- Active the virtual environment

source test_trino_env/bin/active


Step 2: OK, now, let flow below content to start the installation trino

To install trino on Windows(CMD):

py -m pip install trino

To install trino on Unix/macOs:

pip install trino


Step 3: If you want to install a specific trino version, add ==<trino version> to the end command line

Example:

pip install trino==0.303.0


Please see the version list below table:

VersionReleased dateCommand
trino 0.315.02022-07-26T13:07:52Windows:

py -m pip install trino==0.315.0

Unix/macOs:

pip install trino==0.315.0

trino 0.314.02022-07-04T03:49:39Windows:

py -m pip install trino==0.314.0

Unix/macOs:

pip install trino==0.314.0

trino 0.313.02022-04-27T00:56:13Windows:

py -m pip install trino==0.313.0

Unix/macOs:

pip install trino==0.313.0

trino 0.312.02022-03-29T23:44:01Windows:

py -m pip install trino==0.312.0

Unix/macOs:

pip install trino==0.312.0

trino 0.311.02022-03-28T23:51:23Windows:

py -m pip install trino==0.311.0

Unix/macOs:

pip install trino==0.311.0

trino 0.310.02022-02-07T08:41:38Windows:

py -m pip install trino==0.310.0

Unix/macOs:

pip install trino==0.310.0

trino 0.309.02021-12-08T10:47:51Windows:

py -m pip install trino==0.309.0

Unix/macOs:

pip install trino==0.309.0

trino 0.308.02021-12-03T08:51:15Windows:

py -m pip install trino==0.308.0

Unix/macOs:

pip install trino==0.308.0

trino 0.307.02021-12-03T07:50:04Windows:

py -m pip install trino==0.307.0

Unix/macOs:

pip install trino==0.307.0

trino 0.306.02021-09-07T09:54:27Windows:

py -m pip install trino==0.306.0

Unix/macOs:

pip install trino==0.306.0

trino 0.305.02021-01-12T15:55:25Windows:

py -m pip install trino==0.305.0

Unix/macOs:

pip install trino==0.305.0

trino 0.304.02020-12-28T23:37:50Windows:

py -m pip install trino==0.304.0

Unix/macOs:

pip install trino==0.304.0

trino 0.303.02020-12-28T07:04:31Windows:

py -m pip install trino==0.303.0

Unix/macOs:

pip install trino==0.303.0


Step 4: Otherwise, you can install trino from local archives:

Download the distribution file from trino-0.315.0.tar.gz or the specific trino version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_trino_downloaded_file>

On Unix/macOs:

pip install <path_to_trino_downloaded_file>


List distribution:


Project link:

- Homepage