Python PyXML Ubuntu 13.1,错误:安装脚本退出,错误:command';x86#u 64-linux-gnu-gcc';失败,退出状态为1

Python PyXML Ubuntu 13.1,错误:安装脚本退出,错误:command';x86#u 64-linux-gnu-gcc';失败,退出状态为1,python,ubuntu,python-2.7,pyxml,Python,Ubuntu,Python 2.7,Pyxml,在UBuntu 13.1.0上难以安装PyXML,因为它抛出了以下错误: 错误:安装程序脚本退出,出现错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1 我在谷歌上搜索了一下,但只能找到安装python dev的说明,但我已经这样做了(如下面代码中演示的)。我还将HAVE_MEMMOVE 1添加到pyconfig.h中 有什么想法吗 谢谢 ravin@Eowyn:~$ sudo easy_install PyXML Searching for PyXML Reading

在UBuntu 13.1.0上难以安装PyXML,因为它抛出了以下错误: 错误:安装程序脚本退出,出现错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1

我在谷歌上搜索了一下,但只能找到安装python dev的说明,但我已经这样做了(如下面代码中演示的)。我还将HAVE_MEMMOVE 1添加到pyconfig.h中

有什么想法吗

谢谢

 ravin@Eowyn:~$ sudo easy_install PyXML
Searching for PyXML
Reading http://pypi.python.org/simple/PyXML/
Best match: PyXML 0.8.4
Downloading http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0
Processing PyXML-0.8.4.tar.gz
Writing /tmp/easy_install-DrBxsQ/PyXML-0.8.4/setup.cfg
Running PyXML-0.8.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DrBxsQ/PyXML-0.8.4/egg-dist-tmp-ae0fv1
warning: no files found matching '*.html' under directory 'extensions/expat'
warning: no files found matching '*Makefile' under directory 'extensions/expat'
warning: no files found matching '*.dsp' under directory 'extensions/expat'
warning: no previously-included files matching '*/CVS/*' found anywhere in distribution
extensions/expat/lib/xmlparse.c:75:2: error: #error memmove does not exist on this platform, nor is a substitute available
 #error memmove does not exist on this platform, nor is a substitute available
  ^
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
ravin@Eowyn:~$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

为什么要安装PyXML?它是为较早版本的python编写的。尝试使用它,它使用简单,甚至支持

你可以从

from xml.etree.ElementTree import ElementTree
然后继续使用或

编辑:

来自


PyXML和cElementTree在Ubuntu 13.04上的安装将失败,这就是为什么它们现在是可选的。如果您试图在Ubuntu 13.04上安装adspygoogle,则应避免安装这些依赖项。如果您需要使用这两个依赖项中的任何一个,目前可以找到解决方法。

尝试创建一个符号链接,从
/usr/bin/x86_64-linux-gnu-gcc
/usr/bin/gcc
。它无法创建链接,因为/usr/bin/x86_64-linux-gnu-gcc文件存在。我没有仔细阅读您的帖子。可能是重复的。可能是重复的我在搜索中找到了答案,但它没有解决问题:PyXML在谷歌提供的Adwords_Api客户端库中使用,因此要使用库代码,我需要xml:(