Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install matplotlib without installing Qt using conda on Windows?

I wrote a simple GUI application in tkinter that uses matplotlib. Given that I don't make any use of the Qt backend, I guess I don't need it for my application so I'd prefer not to include it in my conda environment: I need my environment to be as much light-weight as possible. Unfortunately the command "conda install matplotlib" installs Qt by default. Is there a way to prevent this?

I'm using anaconda on Windows 10.

like image 441
janluke Avatar asked Aug 22 '17 12:08

janluke


1 Answers

Conda Forge offers a matplotlib-base package that does not include a Qt dependency.

conda install -c conda-forge matplotlib-base

I can confirm that this is sufficient to generate images in Jupyter notebooks.

like image 189
merv Avatar answered Sep 30 '22 02:09

merv