pyxml for python 2.6 死而复生
Pyxml是一個早在04年停止維護的項目了,只支持到2.4,我從官網上down下0.8.4版本setup.py build,結果error: Unable to find vcvarsall.bat。網上找解決辦法還得下個mingw,否則就得VS2005以上的版本,這樣機子上只有VC6.0的我情何以堪那。
于是上網搜解決辦法:
這位老大告訴我: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
?
有點泄氣,不過可哪能放棄呢,于是繼續找,終于找到一個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)
轉載于:https://www.cnblogs.com/yuxc/archive/2011/06/23/2087914.html
總結
以上是生活随笔為你收集整理的pyxml for python 2.6 死而复生的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 访问有用户名和密码的网络共享,实现数据导
- 下一篇: LR常用函数总结