SauceCat / PDPbox

python partial dependence plot toolbox
http://pdpbox.readthedocs.io/en/latest/
MIT License
844 stars 129 forks source link

Failed building wheel for matplotlib #80

Open hofong428 opened 2 years ago

hofong428 commented 2 years ago

While I'm trying to install pdpbox, it seems a conflict happened to my matplotlib: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for matplotlib Running setup.py clean for matplotlib Failed to build matplotlib Installing collected packages: matplotlib, sklearn, pdpbox Attempting uninstall: matplotlib Found existing installation: matplotlib 3.5.1 Uninstalling matplotlib-3.5.1: Successfully uninstalled matplotlib-3.5.1 Running setup.py install for matplotlib ... error error: subprocess-exited-with-error

so why it tried to uninstall the version of matplotlib I've installed? How could I fix the problem?

gulstein86 commented 2 years ago

PDPBox only support the old version of matplotlib. First, you can use matplotlib==3.1.1 by using conda install matplotlib=3.1.1 instead. Do not use pip install matplotlib=3.1.1 since some of the dependencies can't be solve by PyPi. Then download the git

git clone https://github.com/SauceCat/PDPbox.git
cd PDPbox
python setup.py install

Manage to install it in my python 3.8 version. Have not tried with 3.9 yet

ethantenison commented 2 years ago

I have the same problem. It looks like matplotlib isn't on conda for Mac M1 below 3.4.2 ....

marcessz commented 1 year ago

Is it ever going to be updated to work with matplotlib>=3.7?

SauceCat commented 1 year ago

The latest version, v0.3.0, has been released. We recommend updating to this version and checking if it resolves the issue you're facing. Your feedback is appreciated. Thank you for your patience and support.

marcessz commented 1 year ago

Awesome! Thanks!