cqlsh 无法找到它需要执行的 Python 的版本
cqlsh unable to find the version of Python it needs to execute
当我在我的终端 window 中输入:cqlsh
时,我收到一条错误消息:
-bash: /usr/local/bin/cqlsh: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
但是,如果我键入 Python --version
,终端会验证 Python 2.7.10 安装在我的计算机上。
在我看来 cqlsh
正在尝试 运行 python 但它在错误的目录中?
如有任何帮助,我们将不胜感激!
更多上下文:我有一个 docker 容器和一个 scylla(类似 cassandra)数据库,但我想在本地使用 cqlsh。
要运行 cqlsh 最简单的方法是:sudo docker exec -it some-scylla10 cqlsh
Python2.7 在 scylla 容器内 /usr/bin/python2.7 下
当我在我的终端 window 中输入:cqlsh
时,我收到一条错误消息:
-bash: /usr/local/bin/cqlsh: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
但是,如果我键入 Python --version
,终端会验证 Python 2.7.10 安装在我的计算机上。
在我看来 cqlsh
正在尝试 运行 python 但它在错误的目录中?
如有任何帮助,我们将不胜感激!
更多上下文:我有一个 docker 容器和一个 scylla(类似 cassandra)数据库,但我想在本地使用 cqlsh。
要运行 cqlsh 最简单的方法是:sudo docker exec -it some-scylla10 cqlsh
Python2.7 在 scylla 容器内 /usr/bin/python2.7 下