# Python Connector

[Installation](#installation)

* [Prerequisites](#prerequisites)

## Installation

The e6data Connector for Python provides an interface for writing Python applications that can connect to e6data and perform operations.

Install dependencies required for your environment using the command below:

```bash
# Amazon Linux / CentOS dependencies
yum install python3-devel gcc-c++ -y

# Ubuntu/Debian dependencies
apt install python3-dev g++ -y

# pip dependencies
pip install wheel
```

To install the Python package, use the command below:

```bash
pip install --no-cache-dir e6data-python-connector
```

{% embed url="<https://pypi.org/project/e6data-python-connector/>" %}
Download from PyPI
{% endembed %}

{% embed url="<https://github.com/e6x-labs/e6data-python-connector>" %}
View source code on GitHub
{% endembed %}

### **Prerequisites**

* Ingress enabled in the cluster
* Access Token generated in the e6data console.
* #### Windows-Specific Requirement&#x20;

The e6data-python-connector uses a C-based deserialization library for fast data processing.\
On Windows, this library works only when **Visual C++ Build Tools** are installed.\
If these tools are missing, users may encounter the following error during execution:

```
ImportError: cannot import name 'fastbinary' from 'thrift.protocol'
```

### **How to Resolve**

#### **1. Install Visual C++ Build Tools**

Download from:\
<https://visualstudio.microsoft.com/visual-cpp-build-tools/>

During installation, select the workload:

✔ **Desktop Development with C++**

Complete the installation and launch the Build Tools once to ensure initialization.

#### **2. Create and Activate a Virtual Environment**

```
python -m venv <env_name>
<env_name>\Scripts\activate.bat
```

#### 3. Install the e6data Python Connector

```
pip install --no-cache-dir e6data-python-connector==2.3.11
```

After completing these steps, Windows environments will work correctly without the fastbinary import error.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.e6data.com/product-documentation/connectors-and-drivers/python-connector.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
