对于客户,我必须在 SUSE Linux Enterprise Server 11 64 位(简称:SLES 11)上安装 django 网络服务器。
当我从http://software.opensuse.org添加存储库时,我可以安装 python-lxml:
sudo zypper install python-lxml
结果是站点包安装在 /usr/lib/python2.6/site-packages 中。但是,当我尝试使用该包时,导入崩溃:
$ cd /usr/lib/python2.6/site-packages
$ python2.6
..
>>> import lxml.etree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: lxml/etree.so: wrong ELF class: ELFCLASS32
如何在 SLES 11 上正确安装 python-lxml 包?