Warning on starting cqlsh

。_饼干妹妹 提交于 2019-12-07 05:06:12

问题


The following warning appears every time I start cqlsh:- warning: pyreadline dependency missing. Install to enable tab completion. Please help me through this..


回答1:


Install pyreadline for DataStax Cassandra

Set PATH variable for Python to
C:\Program Files\DataStax Community\python


1.     Download pyreadline: https://github.com/pyreadline/pyreadline
2.     Click on "ZIP" to download a zip file of PyReadline repository
3.     Extract to C:\pyreadline
4.     At the command prompt: navigate to C:\pyreadline
5.     Run this: C:\pyreadline\python setup.py install

This will update the Python distribution bundled with Datastax Community Edition.




回答2:


What version are you running, it looks like this has been fixed in a fairly low version.

https://issues.apache.org/jira/browse/CASSANDRA-7749

I would guess that most likely you are running on windows in which case just follow this here: ipython on Windows 7 can't find pyreadline

If this is not the case simply go to https://pypi.python.org/pypi/pyreadline/ and follow install instructions.



来源:https://stackoverflow.com/questions/41703631/warning-on-starting-cqlsh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!