I am trying to install cassandra version 2.2.0 and I found the compatible python version for it is 2.7.10 then I installed it. when I type in terminal
python2.7 --version Python 2.7.10
but when I launch cassandra server and want to start cassandra query language shell by typing root@eman:/usr/local/cassandra# bin/cqlsh bin/cqlsh: 19: bin/cqlsh: python: not found
how could I fix this issue
thanks in advance
It seems that
pythonis not installed on your machine (for whatever reason).cqlshshells out topython(in a rather strange way): https://github.com/spiside/cqlsh/blob/6f5b680fed2e48e37107fd1da272e351e5ac257d/cqlsh#L1-L30Unrelated to this stackoverflow issue, I attempted to fix (and probably fixed) this in the latest version of cqlsh: https://github.com/spiside/cqlsh/commit/a880445ec9d05cfa552928d5a88d1457640456b6
If you can upgrade
cqlshit may fix this.If you can't upgrade
cqlshany of the following things should fix this: - If you're on andebian-like systemapt-get install python-minimal-- this provides the/usr/bin/pythonfile that seems to be missing (for whatever reason) - If your package manager has a package which provides the/usr/bin/pythonsymlink, install that - Otherwise, set up a symlink that's on your path, for exampleln -sf /usr/bin/python2.7 /usr/local/bin/python