在https://pypi.python.org/pypi/setuptools下载
安装命令:
E:\python\setuptools-0.7.4>python setup.py install
然后会提示安装成功,如下:
copying setuptools.egg-info\entry_points.txt.orig -> build\bdist.win32\egg\EGG-I
NFO
copying setuptools.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying setuptools.egg-info\requires.txt.orig -> build\bdist.win32\egg\EGG-INFO
copying setuptools.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
copying setuptools.egg-info\zip-safe -> build\bdist.win32\egg\EGG-INFO
creating dist
creating 'dist\setuptools-0.7.4-py2.7.egg' and adding 'build\bdist.win32\egg' to
it
removing 'build\bdist.win32\egg' (and everything under it)
Processing setuptools-0.7.4-py2.7.egg
Copying setuptools-0.7.4-py2.7.egg to c:\python27\lib\site-packages
Adding setuptools 0.7.4 to easy-install.pth file
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install.exe.manifest script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\Python27\Scripts
Installed c:\python27\lib\site-packages\setuptools-0.7.4-py2.7.egg
Processing dependencies for setuptools==0.7.4
Finished processing dependencies for setuptools==0.7.4
并且在C:\Python27会多出一个目录C:\Python27\Scripts,把这个目录放到环境变量Path里去。