我试图用pip安装pyxml库,但在安装过程中出现以下错误: $ p $ extension $ expat / lib / xmlparse .c:75:2:error:#error memmove在此平台上不存在,也不是可用的替代
我现在的版本是: gcc(Ubuntu / Linaro 4.7.3-1ubuntu1)4.7。我已经试过重新安装gcc编译器。 3
操作系统:Kubuntu 13.04。
我可以以某种方式重新安装memmove库吗?据我所知,它是与string.h lib交付的。
解决方案我有同样的问题,也运行kubuntu- 13.04(在12.10中工作正常)。 @volferine似乎成了某事。我的 config_h 文件也是 /usr/include/python2.7/pyconfig.h ,并且它不包含字符串 HAVE_MEMMOVE 。
至 pyconfig.h ,I追加:
#define HAVE_MEMMOVE 1PyXML现在似乎为我打造。我在这里提交了一个错误报告: bugs.launchpad/ubuntu/+ source / python2.7 / + bug / 1238244 。
Im trying to install pyxml library with pip but i get following errors during installation:
extensions/expat/lib/xmlparse.c:75:2: error: #error memmove does not exist on this platform, nor is a substitute availableI've tried to reinstall gcc compilator .
Current version i've is: gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
OS: Kubuntu 13.04.
Can i somehow reinstall memmove library? As far as i know, it is delivered with string.h lib.
解决方案I had the same problem, also running kubuntu-13.04 (worked fine in 12.10.)
@volferine seems to be onto something. My config_h file is also /usr/include/python2.7/pyconfig.h, and it did not contain the string HAVE_MEMMOVE.
To pyconfig.h, I appended:
#define HAVE_MEMMOVE 1PyXML now appears to build for me. I filed a bug report here: bugs.launchpad/ubuntu/+source/python2.7/+bug/1238244.
更多推荐
PyXML安装
发布评论