Python Driver installation

Prerequisites

To use the Python Driver, we need a compatible version of TypeDB server running. Please see the Version compatibility table to check what version do we need, depending on the TypeDB server version being used.

Install

To install TypeDB Python Driver (or TypeDB Client for Python):

pip install typedb-client

If there is an error or multiple Python versions are installed, try to replace the pip command with the pip3.

Version Compatibility

Python Driver Protocol version TypeDB TypeDB Enterprise & TypeDB Cloud Python

2.18.0 to 2.18.2

1

2.18.0 to 2.22.0

2.18.0 to 2.21.1

>= 3.6

2.17.0

N/A

2.17.0

2.17.0

>= 3.6

2.16.1

N/A

2.16.1

2.16.1

>= 3.6

2.12.0 to 2.14.3

N/A

2.12.0 to 2.15

2.13.0 to 2.15

>= 3.6

2.9.0 to 2.11.1

N/A

2.9.0 to 2.11.1

2.9.0 to 2.11.2

>= 3.6

2.8.0

N/A

2.8.0

N/A

>= 3.6

2.6.0 to 2.6.3

N/A

2.6.0 to 2.7.1

N/A

>= 3.6

2.4.0 to 2.5.0

N/A

2.1.2 to 2.5.0

2.5.0

>= 3.6

2.2.0

N/A

2.1.2 to 2.5.0

2.1.2 to 2.3.0

>= 3.6

2.1.1

N/A

2.1.2

2.1.2

>= 3.6

2.1.0

N/A

2.1.0

2.1.0

>= 3.6

2.0.1

N/A

2.0.2

2.0.2

>= 3.6

2.0.0

N/A

2.0.0 to 2.0.1

2.0.0 to 2.0.1

>= 3.6

1.8.0

N/A

1.8.0 to 1.8.4

N/A

>= 3.5, < 3.8