醉爱PHP

在windows下安装python2.6的setuptools

by admin on 五.06, 2009, under php

想在windows下安装个trac试试,结果,它需要有setuptools才可以继续下去。

然后跑到 http://pypi.python.org/pypi/setuptools#downloads 想去下载个windows下的setuptools,但眼睛扫描了两遍,也只是看到有python2.5 for windows版本的。但我已经安装了python2.6了。不想换来换去。google了一下,找到如下的解决方法:

1. 下载 setuptools-0.6c9.tar.gz
2. 下载 setuptools-0.6c9-py2.6.egg (放在同一个目录)
3. 用7-zip或者其他解压工具打开 setuptools-0.6c9.tar.gz ,并且把里面的 ez_setup.py 文件解压到同一个目录里。
4. 打开cmd窗口,并进入你刚才下载和解压文件的目录里。(例如: d:\downloads\)
5. 输入 python ez_setup.py setuptools-0.6c9-py2.6.egg

完成setuptools在windows下python2.6版本的安装


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...