如何在 Windows 上使用 conda 安装 matplotlib 而无需安装 Qt?
How can I install matplotlib without installing Qt using conda on Windows?
我在使用 matplotlib 的 tkinter 中编写了一个简单的 GUI 应用程序。鉴于我不使用 Qt 后端,我想我的应用程序不需要它,所以我不想将它包含在我的 conda 环境中:我需要我的环境尽可能轻量级尽可能。不幸的是,命令 "conda install matplotlib" 默认安装 Qt。有没有办法防止这种情况?
我在 Windows 10.
上使用 anaconda
Conda Forge 提供 a matplotlib-base
package 不包含 Qt 依赖项。
conda install -c conda-forge matplotlib-base
我可以确认这足以在 Jupyter 笔记本中生成图像。
我在使用 matplotlib 的 tkinter 中编写了一个简单的 GUI 应用程序。鉴于我不使用 Qt 后端,我想我的应用程序不需要它,所以我不想将它包含在我的 conda 环境中:我需要我的环境尽可能轻量级尽可能。不幸的是,命令 "conda install matplotlib" 默认安装 Qt。有没有办法防止这种情况?
我在 Windows 10.
上使用 anacondaConda Forge 提供 a matplotlib-base
package 不包含 Qt 依赖项。
conda install -c conda-forge matplotlib-base
我可以确认这足以在 Jupyter 笔记本中生成图像。