Python lxml模块的PyInstaller错误

Python lxml模块的PyInstaller错误,python,ubuntu,pyinstaller,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_impor

在我的脚本中,我导入了
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
回溯(最近一次呼叫最后一次):
文件“”,第15行,在
文件“/home/yaa110/workspace/Python27/src/PyInstaller-2.1/PyInstaller/loader/pyi_importers.py”,第270行,在load_模块中
exec(字节码、模块、指令)
文件“/home/yaa110/workspace/Python27/src/PyInstaller-2.1/process/build/process/out00 PYZ.PYZ/lxml.html”,第42行,在
ImportError:无法导入名称etree
我怎样才能修好它


我在Ubuntu上使用Python 2.7.5

您的“站点”中是否安装了etree,对吗?@Giupo-是的,Eclipse中的一切都很好,但是输出(由pyinstaller创建)出现了错误。我不会作为答案发布,但可能这会有所帮助:或者: