0

エラーをスローしているため、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.

ここに画像の説明を入力

4

1 に答える 1

1

なぜ PyXML をインストールしようとしているのですか? 古いバージョンの python 用に書かれています。ElementTreeを試してみてください。使いやすく、 XPathもサポートしています。

あなたはから始めることができます

from xml.etree.ElementTree import ElementTree

その後、解析または操作を続行します

編集:

既知の問題はこちらから

PyXML と cElementTree のインストールは Ubuntu 13.04 では失敗するため、これらはオプションになりました。Ubuntu 13.04 に adspygoogle をインストールしようとしている場合は、これらの依存関係をインストールしないでください。これらの依存関係のいずれかを使用する必要がある場合は、現在、このバグで回避策を見つけることができます。

于 2013-11-11T14:54:36.840 に答える