cassandra 2.2 CQl Shell支持python 2.7 [英] cassandra 2.2 CQl Shell supports python 2.7

查看:108
本文介绍了cassandra 2.2 CQl Shell支持python 2.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试启动cql Shell时出现错误

Error I am get when trying to start cql Shell

>cqlsh
CQL Shell supports only Python 2.7
>

我已经安装了python2.7,但它仍然给出相同的错误。
我必须设置一些路径吗?
i使用此命令从datastax安装了Cassandra 2.2

I have installed python2.7 but it is still giving the same error. do i have to set path some were? i have installed Cassandra 2.2 from datastax suing this command

sudo yum install dsc22


推荐答案

根据您的发行版及其版本,您无法更改系统的默认python版本而不会破坏系统。如果您已安装Python 2.7,则其解释器可能位于 python2.7 的路径上。

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.

尝试运行 python2.7 --version 。如果这样给您提供类似 Python 2.7.x 的输出,那么您就很好。只需编辑 cqlsh 脚本,并将 python 替换为 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.

这篇关于cassandra 2.2 CQl Shell支持python 2.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆