Closed vimmis closed 3 years ago
If you have a newer version of pip
, it will honor Click's python_requires
directive and ensure it installs an older version of Click which is still compatible.
Your documented workaround is probably the best interim solution until you can upgrade to python 3.
Also, I just promoted the Cassandra 4.0 version of cqlsh
from beta to GA... it's python 3 compatible, so that should take care of this problem w/o requiring a workaround:
Hi Team,
Today we hit an issue while pip installing cqlsh in a Docker build.
Below is the part of Error
Environement: Docker base image used: ruby 2.2.4 Python 2.7.9 pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
Click Package latest 8.0.0(Released May 11th) mentions
Requires: Python >=3.6
, which will have issue for python 2.7 like above.We have currently fixed it by pre installing the previous compatible version 7.1.2 before installing cqlsh.
pip install click==7.1.2 && pip install cqlsh