1、下载安装 Python(本来下载了py3.3,后来发现相应工具包还没有,就改成较低版本)
python-2.7.3.msi
http://www.python.org/download/
如下载 Python 2.7.3,安装目录为 C:\Python27
2、添加环境变量
path = C:\Python27
此步骤可实现在命令行下,不用进入 Python 目录即可执行 python.exe
3、下载 setuptools
https://pypi.python.org/pypi/setuptools#downloads
64-bit versions of Python
Downloadez_setup.pyand run it; it will download the appropriate .egg file and install it for you. (Currently, the provided.exeinstaller does not support 64-bit versions of Python for Windows, due to adistutils installer compatibility issue
4、下载 pip
pip-1.0.2.tar.gz
http://pypi.python.org/pypi/pip
5、安装 pip
5.1 解压 pip-1.0.2.tar.gz
5.2 运行CMD,进入命令行
5.3 用CD命令进入 pip 解压目录
5.4 输入 "python setup.py install"
5.5 添加环境变量 path = C:\Python27\Scripts
6、安装distribute, nose, virtualenv
进入命令行,输入 "pip install package",package为安装包名称。
程序会自动下载相应的安装包,并进行安装,这步跟 Linux 一样。