问题
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