PyXML安装

编程入门 行业动态 更新时间:2024-10-27 14:25:27
本文介绍了PyXML安装 - memmove在此平台上不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图用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 1

PyXML现在似乎为我打造。我在这里提交了一个错误报告: 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 available

I'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 1

PyXML now appears to build for me. I filed a bug report here: bugs.launchpad/ubuntu/+source/python2.7/+bug/1238244.

更多推荐

PyXML安装

本文发布于:2023-07-03 21:55:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1012510.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PyXML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!