cassandra 2.2 CQl Shell supports python 2.7

后端 未结 4 671
南笙
南笙 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:40

    Not enough rep to post as a comment. If you encounter same problem as @andrewdeal and you installed Python 2.7 side-by-side (a must on CentOS 6 which requires Python 2.6), you need site-packages in your Python 2.7 install.

    As root:

    rm /usr/local/lib/python2.7/site-packages/README
    rmdir /usr/local/lib/python2.7/site-packages
    ln -s /usr/lib/python2.7/site-packages/ /usr/local/lib/python2.7
    

    You can now run cqlsh

提交回复
热议问题