【问题标题】:./bin/cqlsh saying python not found./bin/cqlsh 说找不到 python
【发布时间】:2016-09-11 16:44:51
【问题描述】:

我已安装 cassandra 3.0.0 并尝试连接以连接 cqlsh。当我尝试从已安装的 cassandra 的目录中点击 ./bin/cqlsh 时,我得到了

没有找到python。我正在使用 ubunut14.04LTS

当我在终端中输入 python2 时,它会显示

python2
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

当我在终端中输入 python3 时,它会显示

 python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

所以这意味着它已经安装了。但是当我输入时是的

python 在终端它说

python
The program 'python' is currently not installed. You can install it by typing:
apt-get install python-minimal

即使我安装了 python-minimal,它也不起作用。

请建议..

【问题讨论】:

    标签: python cassandra


    【解决方案1】:

    创建一个指向 /usr/bin/python2 或 /usr/bin/python3 的符号链接 /usr/bin/python

    【讨论】:

      猜你喜欢
      • 2017-09-20
      • 2018-08-29
      • 2020-01-14
      • 2021-05-07
      • 2017-08-08
      • 2011-07-16
      • 2021-03-28
      • 2013-09-14
      • 2020-11-22
      相关资源
      最近更新 更多