【发布时间】:2021-08-26 09:25:17
【问题描述】:
长话短说,我想在配备 M1 芯片组的 MacBook Pro 上安装 Apache Cassandra。
要安装它,必须先安装其他软件,其中之一是python,必须更新到最新版本。我关注了this tutorial。
这是询问 python 现有版本时终端显示的内容:
> python --version
Python 2.7.16
在教程中,他们将其更新到 2.7.17,所以我尝试这样做:
> brew install python@2
这是输出:
Warning: No available formula or cask with the name "python@2". Did you mean bpython, ipython, jython or cython?
==> Searching for similarly named formulae...
These similarly named formulae were found:
bpython ipython jython cython
To install one of them, run (for example):
brew install bpython
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
任何想法如何克服这个问题?
【问题讨论】:
-
您安装的是哪个版本的 Cassandra?如果是 4,那么它支持 Python 3 开箱即用
-
看起来内置 M1 的 MacBook Pro 现在自带 Python 2.7.18
标签: python macos python-2.7 cassandra apple-m1