No suitable python interpreter found. Cassandra

I am a java developer and very new to Linux and Cassandra. I am using CentOS6. I am trying to install Cassandra3.4 on a Linux machine. I followed the steps mentioned in here .

It looks like Python is already installed on the Linux machine. When I tried python -V in my putty connected to a Linux machine, I got the following result in my putty. Python 2.6.6 I assume that python is installed. FYKI, I have no idea how python works.

After completing the installation process, I started the cassandra service with the following command. /opt/cassandra/bin/cassandra -f -R &. All was good.

Now here is the problem. When I run ./cqlsh, I get the following error.

No suitable python interpreter found.

I did my research and tried out several options, but so far nothing has been fruitful.

None of the above links worked for me. Or maybe I'm not smart enough to understand. Any help is appreciated. Thank.

+4
source share
2 answers

I think you should try upgrading your version of Python to version 2.7, because Cassandra 3.x requires Python 2.7.

You can contact:

[http://thecpaneladmin.com/how-to-upgrade-python-on-centos/][1]

Assuming you didn't change the python configuration during installation, it should work. You can try and let us know.

+5
source

python :

wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz

tar -xvzf Python-2.7.6.tgz

cd Python-2.7.6

./configure --prefix=/usr/local

make

make install

, , shebang:

#!/usr/local/bin/python2.7

, pip:

/usr/local/bin/pip2.7

+2

All Articles