You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
错误信息:AttributeError: ‘module’ object has no attribute ‘ANTIALIAS_FAST’
解决方案:
1、Install Python version >=3.4 (and pip, which seems to be included in the Windows installer)
2、If you want, set up virtualenv(这步在实际中忽略)
3、Install lxml. pip install lxml doesn’t seem to be working for me on Windows, so I used the unofficial binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
4、Install cairosvg: pip install cairosvg
5、Install cairocffi: pip install cairocffi==0.6(不知道为啥,安装最新版本报错,只能安装此版本)
At this point it might be worth trying to run the generate-xml script and seeing if it works…(到这步的时候,依然是有错误)
…If not, install the GTK+ Runtime (as noted in the cairocffi docs)(执行完第七步,重启pycharm,终于可以正常运行)
原先是因为在windows下,缺少一个dll文件,安装GTK+即可解决
原先是因为在windows下,缺少一个dll文件,安装GTK+即可解决
官方文档:http://cairosvg.org/
官方文档示例很简单,pip install cairosvg
成功
在pycharm下撸了代码:
错误信息:
AttributeError: ‘module’ object has no attribute ‘ANTIALIAS_FAST’
解决方案:
1、Install Python version >=3.4 (and pip, which seems to be included in the Windows installer)
2、If you want, set up virtualenv(这步在实际中忽略)
3、Install lxml. pip install lxml doesn’t seem to be working for me on Windows, so I used the unofficial binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
4、Install cairosvg: pip install cairosvg
5、Install cairocffi: pip install cairocffi==0.6(不知道为啥,安装最新版本报错,只能安装此版本)
At this point it might be worth trying to run the generate-xml script and seeing if it works…(到这步的时候,依然是有错误)
…If not, install the GTK+ Runtime (as noted in the cairocffi docs)(执行完第七步,重启pycharm,终于可以正常运行)
原先是因为在windows下,缺少一个dll文件,安装GTK+即可解决
解决方案参考:nathanielw/Material-Icons-for-Pencil#2
GTK :https://pythonhosted.org/cairocffi/overview.html#installing-cairo-on-windows
The text was updated successfully, but these errors were encountered: