与lxml模块的PyInstaller错误

时间:2013-12-03 19:05:28

标签: python ubuntu pyinstaller

在我的脚本中,我导入了lxml模块。我在Ubuntu上使用pyinstaller从我的脚本中创建了一个可执行文件。当我在终端中运行可执行文件时,我收到以下错误:

Traceback (most recent call last):
  File "<string>", line 15, in <module>
  File "/home/yaa110/workspace/Python27/src/PyInstaller-2.1/PyInstaller/loader/pyi_importers.py", line 270, in load_module
    exec(bytecode, module.__dict__)
  File "/home/yaa110/workspace/Python27/src/PyInstaller-2.1/process/build/process/out00-PYZ.pyz/lxml.html", line 42, in <module>
ImportError: cannot import name etree

我该如何解决?

我在Ubuntu上使用Python 2.7.5

0 个答案:

没有答案