【发布时间】:2020-03-15 05:21:57
【问题描述】:
执行以下命令时:
/usr/bin/cqlsh 127.0.0.1
遇到错误:
Traceback (most recent call last):
File "/usr/bin/cqlsh.py", line 169, in <module>
from cqlshlib import cql3handling, cqlhandling, pylexotron, sslhandling, cqlshhandling
ImportError: cannot import name cqlshhandling
即使我在以下目录中找到了 cqlshhandling.py 脚本:
/usr/lib/python2.7/dist-packages/cqlshlib
命令which cqlsh 显示/usr/local/bin/cqlsh。这是来自pip install cqlsh。
当前使用的命令来自 cassandra 本身。我要设置什么来让 cqlsh 运行?
【问题讨论】:
-
你是怎么安装cqlsh的?有时通过 PIP 重新安装可以解决此问题
pip install cqlsh。否则,请检查您的 PATH 并确保您的环境使用的是 Python 2.7.11+。
标签: cassandra ubuntu-18.04 cqlsh