Unable to open cqlsh Apache cassandra - ImportError: No module named cqlshlib

前端 未结 8 746
猫巷女王i
猫巷女王i 2020-12-18 20:55

I am new to cassandra ! Have downloaded the apacahe cassandra 2.1.2 package and initialy was able to connect to cqlsh but then after installing CCM i am unable to connect ,

8条回答
  •  北海茫月
    2020-12-18 21:31

    You could export PYTHONPATH, to include site package folder where cqlshlib exists

    First find the path where cqlshlib exists

    find /usr/lib/ -name cqlshlib
    

    Export the path using below variable name

    export PYTHONPATH=/usr/lib/python2.7/site-packages/
    

提交回复
热议问题