简体   繁体   English

PyXML Ubuntu 13.1,错误:安装脚本退出,错误:命令“ x86_64-linux-gnu-gcc”失败,退出状态为1

[英]PyXML Ubuntu 13.1, error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

struggling to install PyXML on UBuntu 13.1.0, As it is throwing the error: error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 努力在UBuntu 13.1.0上安装PyXML时,由于抛出错误:错误:安装脚本退出,并显示错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1

I googled around a bit but could only find instructions to install python-dev but I have already done this (as demoed in the code below). 我在谷歌上搜索了一下,但是只能找到安装python-dev的说明,但是我已经做到了(如下面的代码所示)。 I also added HAVE_MEMMOVE 1 to pyconfig.h 我也将HAVE_MEMMOVE 1添加到pyconfig.h

Any ideas anyone? 有任何想法吗?

Thanks, 谢谢,

 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.

在此处输入图片说明

Why are you trying to install PyXML? 为什么要尝试安装PyXML? It was written for older versions of python. 它是为python的旧版本编写的。 Try using ElementTree it is simple to use and even supports XPath 尝试使用ElementTree,它简单易用,甚至支持XPath

You may start with 您可以从开始

from xml.etree.ElementTree import ElementTree

and then continue with parsing or manipulating 然后继续解析操作

EDIT: 编辑:

Known Issues from here 此处的已知问题

The installation of PyXML and cElementTree will fail on Ubuntu 13.04, which is why these are now optional. 在Ubuntu 13.04上PyXML和cElementTree的安装将失败,这就是为什么现在这些都是可选的。 If you are trying to install adspygoogle on Ubuntu 13.04, you should avoid installing these dependencies. 如果您尝试在Ubuntu 13.04上安装adspygoogle,则应避免安装这些依赖项。 If you need to use either of these dependencies, there is currently a work-around that can be found in this bug . 如果您需要使用这些依赖关系中的任何一个,当前可以在此Bug中找到解决方法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装脚本退出并出现错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 安装Pillow错误:安装脚本退出并显示错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Ubuntu Cython 编译错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - Ubuntu Cython compilation error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 GDAL 安装错误“错误:命令‘x86_64-linux-gnu-gcc’失败,退出状态为 1” - GDAL installation error "error: command 'x86_64-linux-gnu-gcc' failed with exit status 1" Oursql 安装:错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - Oursql install : error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 如何修复错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为 1 - How to fix error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 pip安装MySQL-python在ubuntu 14.04上失败,错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - pip install MySQL-python fails on ubuntu 14.04, error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误:命令“ x86_64-linux-gnu-gcc”失败,退出状态为4 - error: command 'x86_64-linux-gnu-gcc' failed with exit status 4 错误:命令“x86_64-linux-gnu-gcc”在安装 pygsr、pyaudio 时失败,退出状态为 1 - error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while installing pygsr,pyaudio lxml:错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1 - lxml: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM