cassandra 2.2 CQl Shell supports python 2.7

后端 未结 4 672
南笙
南笙 2021-01-24 04:24

Error I am get when trying to start cql Shell

>cqlsh
CQL Shell supports only Python 2.7
>

I have installed python2.7 but it is still givi

4条回答
  •  被撕碎了的回忆
    2021-01-24 04:39

    Depending on your distribution and its version you cannot change the default python version of the system without breaking the system. If you have Python 2.7 installed then its interpreter is probably on your path as python2.7.

    Try running python2.7 --version. If that gives you an output like Python 2.7.x you are good. Just edit the cqlsh script and replace python with python2.7 at the beginning of the only code line in the file.

提交回复
热议问题