日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

pyxml for python 2.6 死而复生

發(fā)布時間:2025/5/22 python 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 pyxml for python 2.6 死而复生 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Pyxml是一個早在04年停止維護的項目了,只支持到2.4,我從官網(wǎng)上down下0.8.4版本setup.py build,結果error: Unable to find vcvarsall.bat。網(wǎng)上找解決辦法還得下個mingw,否則就得VS2005以上的版本,這樣機子上只有VC6.0的我情何以堪那。

于是上網(wǎng)搜解決辦法:

這位老大告訴我:PyXML is dead project – warning: PyXML does not work with Python2.6

http://georgik.sinusgear.com/2011/01/10/dead-project-warning-pyxml-does-not-work-with-python2-6/comment-page-1/#comment-15841

?

有點泄氣,不過可哪能放棄呢,于是繼續(xù)找,終于找到一個oddguy的blog:

Windows Installer for PyXML 0.8.4 for Python 2.6.x and Python 2.7.x

?

哇塞,太帥氣了,尤其博文也寫得很逗:

Rambling Version

So you are a Windows user and you want to install Python/XML (A.K.A. PyXML), but there is no version on Sourceforge since November 2004, when Python 2.4 was all the rage. It isn’t being maintained any more.

So you turn to your Python friends, and they say “Oh don’t use that. There are much better XML libraries now.” And you say “But the library I want to use uses ZSI which uses PyXML, and ZSI isn’t being maintained either.”

And your Python friends say “ZSI? Are you using SOAP? 2001 just called and they want their over-hyped protocol stack back.” And you say “Yeah, but I need to access a server that only provides SOAP, and someone has written a wrapper layer to it which, surprise, surprise, is no longer being maintained. Besides, the whole ‘the past called’ gag is a bit dated too, isn’t it?”

So they say “Ah, just install it with easy_install” and you look at them funny, because you are a Windows programmer, and they are Linux programmers, and that’s not the way you do things around here.

Either you decide to give it a go, or you decide to download the source directly and run ‘setup.py build’, and either way it complains about ‘vcvarsall.bat’ being missing, which is its way of saying “How am I supposed to compile this C code? Don’t you have Microsoft Visual Studio installed?” to which you say “No, I am a Python programmer now! The eighties called, and asked for their C compiler back, and I gave it to them.” but it isn’t listening to you, and neither are your Linux friends, because they don’t want to associate with someone who doesn’t have a C compiler built in to the operating system.

Maybe you discover at this point that you can actually run a lot of ZSI without the C parts of PyXML. You can just install the non-C parts. This worked for me for almost a month, but eventually it came across some XML that needed the C code and it fell over.

Then you hear a rumour about a free Visual Studio command-line compiler, and a free C compiler called gcc or MINGW or something. Sounds too hard, so you yell in frustration “All I want is a nice Windows installer with pre-built binaries? Hasn’t anyone on the internet built one for me?” and your Linux friends who were pretending they couldn’t hear you finally turn around and say “Wait, you are going to run a binary you just found somewhere on the net? Are you crazy? It could have all sorts of nasty code in there.” and you just look at them funny because that’s just the way you do things around here.

If this is you, I have a solution! I have built the PyXML distribution, ready to just install, linked at the top and bottom of this post. If you don’t trust me (and frankly, you shouldn’t), I have provided instructions on how to do it yourself.

?

?

需要下載的童鞋,鏈接如下,感謝外國友人啊:

PyXML 0.8.4 for Python 2.6, Windows Installer (1,006 KB)

PyXML 0.8.4 for Python 2.7, Windows Installer (1,012 KB)

轉(zhuǎn)載于:https://www.cnblogs.com/yuxc/archive/2011/06/23/2087914.html

總結

以上是生活随笔為你收集整理的pyxml for python 2.6 死而复生的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。