pip install spectrum 没有额外的

pip install spectrum with no extras

我安装了 pip-installed spectrum,默认安装了 matplotlib。查看 source code,我看到 matplotlibextras_required 中。我想知道如何在没有 matplotlib 的情况下安装 spectrum

你不能(不应该?),它也是安装的一部分 requirements

话虽如此,OP 卸载了 matplotlib 并且 spectrum 仍然有效(至少部分有效),所以它可能不是 "true" 要求 - 您可以从要求文件中删除它或卸载 matplotlib 完成这里。