在我的脚本中,我导入了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