activepython
http://www.activestate.com/products/activepython/
是ActiveState Software的一个python的分发包,带了一些python的扩展.
setuptools
http://cheeseshop.python.org/pypi/setuptools
是一个python的包,它可以简化python包的下载,build,安装升级和卸载
ClientCookie
http://wwwsearch.sourceforge.net/ClientCookie/
是一个python对cookie功能的扩展,从HTTP::Cookies而来。作者说以后不会再发布单独的模块,已经集成到了mechanize里面。
下载上述软件
wget http://downloads.activestate.com/ActivePython/linux/2.5/ActivePython-2.5.1.1-linux-x86.tar.gz
wget http://wwwsearch.sourceforge.net/ClientCookie/src/ClientCookie-1.3.0.tar.gz
wget http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c6-py2.5.egg
先安装ActivePython
tar zxvf ActivePython-2.5.1.1-linux-x86.tar.gz
cd ActivePython-2.5.1.1-linux-x86
./install.sh
输入安装的目录,我输入了/usr/local/python25/
装好后看一下
[jym@jym jym]$ /usr/local/python25/bin/python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:48:28) [GCC 2.95.3 20010315 (SuSE)] on linux2 Type "help", "copyright", "credits" or "license" for more information. %3E%3E%3E%20
本来应该直接安装ClientCookie的,安装过程中要使用setuptools,它应该自动下载,安装的,但是由于ClientCookie用的url不对,用的是
http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6a11-py2.5.egg
所以不能自动下载,只好手工下载,安装
安装
setuptools
在setuptools-0.6c6-py2.5.egg所在的目录运行
ln -s /usr/local/python25/bin/python2.5 python2.5 PATH=.:$PATH sh setuptools-0.6c6-py2.5.egg rm python2.5
安装ClientCookie
tar zxvf ClientCookie-1.3.0.tar.gz cd ClientCookie-1.3.0 /usr/local/python25/bin/python setup.py build /usr/local/python25/bin/python setup.py install
至此,activepython2.5+setuptools+ClientCookie在linux的安装已经完成,ClientCookie的简单使用等俺下一篇再说:D
BTW:祝大家6.1快乐!
《 “在linux下安装activepython2.5 setuptools ClientCookie” 》 有 2 条评论
windows 下的安装方法如下:
down
http://peak.telecommunity.com/dist/ez_setup.py
run ez_setup.py
ClientCookie-1.3.0 目录中 run python setup.py install
[…] ClientCookie,一个python的扩展包,安装请参考这里 2个v_account里的vkey用来和登陆后的页面上的信息来验证是否正常登录的 […]