-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
OS:win11
Python:3.14.2 并启用python的venv虚拟环境
Tdengine:centos7.6 docker 部署3.3.8.8
测试代码:https://github.com/taosdata/TDengine/blob/main/docs/examples/python/connect_websocket_sqlalchemy_examples.py
具体问题现象:
1.参考官方文档,安装ws连接依赖,执行pip install taos-ws-py后提示Successfully installed taos-ws-py-0.6.5,运行后报错如下图
2.看上一步的报错,感觉是缺少什么库,于是我卸载上一步安装的库,执行命令pip uninstall taos-ws-py,成功卸载,重新安装**pip install taospy[ws]** ,也就是同时安装 taospy 和 taos-ws-py,再次执行代码换了另外一种错误,如下图
我不太清楚问题的原因是什么,是我python版本太高了还是说不能开启python的虚拟环境?
使用官方测试命令import taosws也能正常import,如下图

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working