zsh:未找到匹配项:bertopic[可视化]

zsh: no matches found: bertopic[visualization]

我正在尝试使用

在我的 macbook pro 中安装 bertopic[可视化]
pip3 install bertopic[visualization]

但是每当我 运行 执行上述命令时,我都会收到错误消息。错误如下:

zsh: no matches found: bertopic[visualization]

有没有办法安装bert的可视化选项?

zshpattern matching 使用方括号,这意味着如果您需要将文字方括号作为参数传递给命令,您需要转义它们或像这样引用参数:

所以尝试使用:

pip3 install 'bertopic[visualization]'