KB Article #187920

Cassandra 4.1 and RHEL 7: Unsupported version of Python

Problem

CQLSH outputs the following lines after upgrading Cassandra to version 4.1+ :

Warning: unsupported version of Python: 2.7

No appropriate Python interpreter found.

Resolution

RedHat7 comes by default with python 2.7 while cqlsh in Cassandra 4.1+ is designed to work with Python 3.6 and above.

Previous versions of Cassandra such as 4.0.7 or 4.0.13 will still allow cqlsh to work with python 2.7.5 for backwards compatibility.

To resolve above error , install and enable python36, or newer.