我正在尝试从ete3网站运行代码,但不断收到以下错误:
ImportError Traceback (most recent call last)
<ipython-input-12-a0ac9cfa4061> in <module>()
1 from ete3 import Tree
2 t = Tree( "((a,b),c);" )
----> 3 t.render("mytree.png", w=183, units="mm")
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ete3/coretype/tree.pyc in render(self, file_name, layout, w, h, tree_style, units, dpi)
1352 """
1353
-> 1354 from ..treeview import drawer
1355 if file_name == '%%return':
1356 return drawer.get_img(self, w=w, h=h,
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ete3/treeview/__init__.py in <module>()
40
41
---> 42 from .main import *
43 from .faces import *
44 from .svg_colors import *
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ete3/treeview/main.py in <module>()
46 from sys import stderr
47
---> 48 from PyQt4.QtGui import *
49 from PyQt4 import QtCore
50
ImportError: No module named PyQt4.QtGui
由于不再支持 qt4(如此处所述),我 brew 安装了 qt5。但是当我再次运行 ete3 代码时,系统仍然显示相同的 ImportError。
有谁知道这个问题的解决方案?