简体   繁体   中英

Matplotlib: cannot save PDF figure

I had to delete and re-install again matplotlib a couple of times. Now, the modules work again, but I cannot save PDF figures. I get the following error:

No module named backend_pdf

I could try to remove matplotlib again and re-install. Can I just install the missing module?

The module it is referring to is an internal module in matplotlib; conceivably you could find the module on github and copy it to $MATPLOTLIBPATH/backends. But yes, if reinstalling matplotlib is an option, I would try that, because that error is strange and who knows what else is missing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM