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

Nay*_*dhu 2 pip python-3.x bert-language-model

我正在尝试使用以下命令在我的 macbook pro 中安装 bertopic[可视化]

pip3 install bertopic[visualization]
Run Code Online (Sandbox Code Playgroud)

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

zsh: no matches found: bertopic[visualization]
Run Code Online (Sandbox Code Playgroud)

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

thi*_*ths 6

zsh使用方括号进行模式匹配,这意味着如果需要将文字方括号作为参数传递给命令,则需要转义它们或引用参数,如下所示:

所以尝试使用:

pip3 install 'bertopic[visualization]'