简体   繁体   中英

Making cairo work on Jupyter notebook with Pycharm

I'm trying to work with a notebook that requires cairo but I get the following error:

OSError: no library called "cairo-2" was found
no library called "cairo" was found
cannot load library 'C:\Program Files (x86)\GTK2-Runtime\bin\libcairo-2.dll': error 0xc1
cannot load library 'libcairo.so.2': error 0x7e
cannot load library 'libcairo.2.dylib': error 0x7e
cannot load library 'libcairo-2.dll': error 0xc1

I am opening the notebook through Pycharm and work with Windows 10. I have tried everything I have found on StackOverflow, including installing GKT+ or UniConverter2.0 , adding the respective directory to my path to the Project interpreter in the way described here and restarting Pycharm. Nothing seems to work though.

Any ideas on what might be missing? I'm happy to provide further details that may help answer the question, As you can probably tell. I'm quite a newbie.

Thanks!

The error you're getting means that you've installed a 32bit version of the cairo dll. Installing a 64bit version solved this problem for me: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases

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