未安装python cassandra驱动程序,或者未安装在ubuntu上的pythonpath上

scyqe7ek  于 2021-06-09  发布在  Cassandra
关注(0)|答案(1)|浏览(515)

我正在尝试执行./cqlsh。但它给出了以下错误:

Python Cassandra driver not installed, or not on PYTHONPATH.
You might try "pip install cassandra-driver".

Python: /usr/local/bin/python
Module load path: ['/home/ubuntu/Downloads/apache-cassandra-3.11.2-bin/apache-cassandra-3.11.2/bin/../lib/six-1.7.3-py2.py3-none-any.zip', '/home/ubuntu/Downloads/apache-cassandra-3.11.2-bin/apache-cassandra-3.11.2/bin/../lib/futures-2.1.6-py2.py3-none-any.zip', '/home/ubuntu/Downloads/apache-cassandra-3.11.2-bin/apache-cassandra-3.11.2/bin/../lib/cassandra-driver-internal-only-3.11.0-bb96859b.zip/cassandra-driver-3.11.0-bb96859b', '/home/ubuntu/Downloads/apache-cassandra-3.11.2-bin/apache-cassandra-3.11.2/bin', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages']

Error: can't decompress data; zlib not available

我已经安装了python,zlib,cassandra驱动程序,但是上面的错误仍然存在。

f4t66c6m

f4t66c6m1#

如果您下载了cassandra的tarball版本并将其正确解包,那么我只能假设您的副本已损坏/不完整。
今年早些时候,我修改了apache网站(cassandra-15466)上的cassandra安装说明。
如果你在一个干净的ubuntu18.04或20.04服务器上按照安装说明进行操作,它将第一次工作,每次--https://cassandra.apache.org/doc/latest/getting_started/installing.html#installing-二进制tarball。干杯!

相关问题