# 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.
