问题描述
在Django调试模式/usr/local/lib/python2.6/dist-packages/lxml-2.3-py2.6-win32.egg/lxml/objectify.pyd: invalid ELF header
I'm getting an IMPORT ERROR
with the following error message in Django debug mode /usr/local/lib/python2.6/dist-packages/lxml-2.3-py2.6-win32.egg/lxml/objectify.pyd: invalid ELF header
这是什么意思,我该如何解决? Google目前没有透露太多信息.此错误来自我在Django应用中使用的包
What does this mean and how do I fix it? Google is revealing not very much at the moment. This error is coming from this package I am using in my Django app
更新我正在使用ubuntu和Python2.6
UpdateI'm using ubuntu and Python2.6
推荐答案
该错误表示objectify.pyd
不是有效的共享库.您似乎已经为运行的版本不同的python版本编译了lxml
.
The error means the objectify.pyd
is not a valid shared library. You seem to have lxml
compiled for different version of python from what you are running.
从路径上猜测,"ELF"是在unices上使用的对象(共享和可执行)格式的事实,并且该软件包的名称中带有-win32,您可能正在尝试使用在Linux上构建的Windows.
Guessing from the path, the fact that 'ELF' is an object (shared and executable) format used on unices and the package has -win32 in it's name you are probably trying to use windows build on linux.
这篇关于此错误是什么意思:无效的ELF标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!