cassandra 如何修复启动cqlsh时的错误

5jdjgkvh  于 2022-12-03  发布在  Cassandra
关注(0)|答案(1)|浏览(102)

这是我第一次使用Cassandra,当我尝试运行“CQLSH”命令时,我得到如下错误。

C:\Users\RanggaSaputra>cqlsh
  File "C:\apache-cassandra-3.11.14\bin\cqlsh.py", line 146
    except ImportError, e:
           ^^^^^^^^^^^^^^

我的设备是windows 11
我尝试按照YouTube的建议将start_rpc和enable_user变量更改为true。

mm5n2pyu

mm5n2pyu1#

What version of python do you use? I believe you'll want version 2.7 for Cassandra 3.11 as specified here: https://cassandra.apache.org/doc/3.11/cassandra/getting_started/installing.html Not having the proper version is likely the issue.

相关问题