Код: Выделить всё
seva@seva-HLYL-WXX9:~$ python --version
Python 2.7.18
Код: Выделить всё
seva@seva-HLYL-WXX9:~$ pip install six==1.7.2
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: six==1.7.2 in ./.pyenv/versions/2.7.18/lib/python2.7/site-packages (1.7.2)
Код: Выделить всё
seva@seva-HLYL-WXX9:~$ cqlsh
Traceback (most recent call last):
File "/usr/bin/cqlsh.py", line 130, in
from six.moves import configparser, input
ModuleNotFoundError: No module named 'six.moves'
Код: Выделить всё
seva@seva-HLYL-WXX9:~$ pip show six
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Name: six
Version: 1.7.2
Summary: Python 2 and 3 compatibility utilities
Home-page: http://pypi.python.org/pypi/six/
Author: Benjamin Peterson
Author-email: [email protected]
License: MIT
Location: /home/seva/.pyenv/versions/2.7.18/lib/python2.7/site-packages
Requires:
Required-by: thrift
Если вы хотите использовать python2.7, откройте cqlsh.py с помощью nano:
Код: Выделить всё
sudo nano /usr/bin/cqlsh.py
Подробнее здесь: https://stackoverflow.com/questions/793 ... -six-moves