我是linux用户,到目前为止,我已经成功地在python2中使用了ete3。
我为python3安装了ete3,但有一些模块是python3找不到的。我相信我已经按照说明安装了所有的依赖项。
我可以从ete3导入ete3和树,但不能导入到目前为止我使用过的任何其他文件。
有关于如何解决这个问题的线索吗?
~$ python3
Python 3.4.3 (default, Nov 28 2017, 16:41:13)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ete3
>>> from ete3 import Tree
>>> from ete3 import TreeStyle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'TreeStyle'
>>> from ete3 import faces
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'faces'
>>> from ete3 import AttrFace
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'AttrFace'
>>> from ete3 import NodeStyle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'NodeStyle'发布于 2018-12-19 20:48:04
我设法安装了依赖项。问题是ete3没有正确地报告丢失的依赖项。
您可以查看以下代码中缺少哪些依赖项:
import ete3
ete3.__file__我多次运行它,并安装每次都被抱怨的包,直到它最终工作!
https://stackoverflow.com/questions/49193417
复制相似问题