TiDB Python Environment Configuration

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb python 环境配置

| username: 海水孤独

【TiDB Usage Environment】/Test
【TiDB Version】6.5.1
【Reproduction Path】pip install -r requirements.txt
【Encountered Problem: Phenomenon and Impact】ERROR: Could not find a version that satisfies the requirement python-dotenv==1.0.0 (from versions: 0.1.0, 0.1.2, 0.1.3, 0.1.5, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.7.1, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.17.1, 0.18.0, 0.19.0, 0.19.1, 0.19.2, 0.20.0)
ERROR: No matching distribution found for python-dotenv==1.0.0
【Resource Configuration】Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
【Attachments: Screenshots/Logs/Monitoring】

| username: zhaokede | Original post link

Error: Could not find a version that satisfies the requirement python-dotenv==1.0.0

| username: zhaokede | Original post link

To configure TiDB support in a Python environment, you typically need to use a MySQL client library because TiDB’s protocol is compatible with MySQL.

| username: TiDBer_LM | Original post link

python-dotenv==1.0.0 needs to be installed.