Python 安装setuptools方法
setuptools下载地址
https://pypi.org/project/setuptools/#files
这是一个压缩文件,将其解压到桌面,并进入该文件夹
按住shift键后,在文件夹空白处点击鼠标右键,选择:在此处打开命令窗
![](http://upload-images.jianshu.io/upload_images/9264240-05fe82bf66817b42.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/395/format/webp)
输入python setup.py install 回车
![](http://upload-images.jianshu.io/upload_images/9264240-f244e85b4d39abaa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/532/format/webp)
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz
Extracting in c:users
obert~1appdatalocal emp mprfdpue
Now working in c:users
obert~1appdatalocal emp mprfdpuesetuptools-0.9.8
Installing Setuptools
running install
running bdist_egg
running egg_info
writing dependency_links to setuptools.egg-infodependency_links.txt
writing requirements to setuptools.egg-info
equires.txt
writing setuptools.egg-infoPKG-INFO
writing top-level names to setuptools.egg-info op_level.txt
writing entry points to setuptools.egg-infoentry_points.txt
reading manifest file 'setuptools.egg-infoSOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'setuptools.egg-infoSOURCES.txt'
installing library code to builddist.win32egg
running install_lib
running build_py
creating build
creating buildlib
copying pkg_resources.py -> buildlib
copying easy_install.py -> buildlib
creating buildlibsetuptools
copying setuptoolsarchive_util.py -> buildlibsetuptools
copying setuptoolscompat.py -> buildlibsetuptools
copying setuptoolsdepends.py -> buildlibsetuptools
copying setuptoolsdist.py -> buildlibsetuptools
copying setuptoolsextension.py -> buildlibsetuptools
copying setuptoolspackage_index.py -> buildlibsetuptools
copying setuptoolspy24compat.py -> buildlibsetuptools
copying setuptoolspy27compat.py -> buildlibsetuptools
copying setuptoolssandbox.py -> buildlibsetuptools
copying setuptoolsscript template (dev).py -> buildlibsetuptools
copying setuptoolsscript template.py -> buildlibsetuptools
copying setuptoolssite-patch.py -> buildlibsetuptools
copying setuptoolsssl_support.py -> buildlibsetuptools
copying setuptools\__init__.py -> buildlibsetuptools
creating buildlib\_markerlib
copying _markerlibmarkers.py -> buildlib\_markerlib
copying _markerlib\__init__.py -> buildlib\_markerlib
creating buildlibsetuptoolscommand
copying setuptoolscommandalias.py -> buildlibsetuptoolscommand
copying setuptoolscommanddist_egg.py -> buildlibsetuptoolscommand
copying setuptoolscommanddist_rpm.py -> buildlibsetuptoolscommand
copying setuptoolscommanddist_wininst.py -> buildlibsetuptoolscommand
copying setuptoolscommanduild_ext.py -> buildlibsetuptoolscommand
copying setuptoolscommanduild_py.py -> buildlibsetuptoolscommand
copying setuptoolscommanddevelop.py -> buildlibsetuptoolscommand
copying setuptoolscommandeasy_install.py -> buildlibsetuptoolscommand
copying setuptoolscommandegg_info.py -> buildlibsetuptoolscommand
copying setuptoolscommandinstall.py -> buildlibsetuptoolscommand
copying setuptoolscommandinstall_egg_info.py -> buildlibsetuptoolscommand
copying setuptoolscommandinstall_lib.py -> buildlibsetuptoolscommand
copying setuptoolscommandinstall_scripts.py -> buildlibsetuptoolscommand
copying setuptoolscommand
egister.py -> buildlibsetuptoolscommand
copying setuptoolscommand
otate.py -> buildlibsetuptoolscommand
copying setuptoolscommandsaveopts.py -> buildlibsetuptoolscommand
copying setuptoolscommandsdist.py -> buildlibsetuptoolscommand
copying setuptoolscommandsetopt.py -> buildlibsetuptoolscommand
copying setuptoolscommand est.py -> buildlibsetuptoolscommand
copying setuptoolscommandupload.py -> buildlibsetuptoolscommand
copying setuptoolscommandupload_docs.py -> buildlibsetuptoolscommand
copying setuptoolscommand\__init__.py -> buildlibsetuptoolscommand
creating buildlibsetuptools ests
copying setuptools estsdoctest.py -> buildlibsetuptools ests
copying setuptools estspy26compat.py -> buildlibsetuptools ests
copying setuptools estsserver.py -> buildlibsetuptools ests
copying setuptools ests est_bdist_egg.py -> buildlibsetuptools ests
copying setuptools ests est_build_ext.py -> buildlibsetuptools ests
copying setuptools ests est_develop.py -> buildlibsetuptools ests
copying setuptools ests est_dist_info.py -> buildlibsetuptools ests
copying setuptools ests est_easy_install.py -> buildlibsetuptools ests
copying setuptools ests est_egg_info.py -> buildlibsetuptools ests
copying setuptools ests est_markerlib.py -> buildlibsetuptools ests
copying setuptools ests est_packageindex.py -> buildlibsetuptools ests
copying setuptools ests est_resources.py -> buildlibsetuptools ests
copying setuptools ests est_sandbox.py -> buildlibsetuptools ests
copying setuptools ests est_sdist.py -> buildlibsetuptools ests
copying setuptools ests est_test.py -> buildlibsetuptools ests
copying setuptools ests est_upload_docs.py -> buildlibsetuptools ests
copying setuptools ests\__init__.py -> buildlibsetuptools ests
creating buildlibsetuptools\_backport
copying setuptools\_backport\__init__.py -> buildlibsetuptools\_backport
creating buildlibsetuptools\_backporthashlib
copying setuptools\_backporthashlib\_sha.py -> buildlibsetuptools\_backporthashlib
copying setuptools\_backporthashlib\_sha256.py -> buildlibsetuptools\_backporthashlib
copying setuptools\_backporthashlib\_sha512.py -> buildlibsetuptools\_backporthashlib
copying setuptools\_backporthashlib\__init__.py -> buildlibsetuptools\_backporthashlib
copying setuptoolscli-32.exe -> buildlibsetuptools
copying setuptoolscli-64.exe -> buildlibsetuptools
copying setuptoolscli-arm-32.exe -> buildlibsetuptools
copying setuptoolscli.exe -> buildlibsetuptools
copying setuptoolsgui-32.exe -> buildlibsetuptools
copying setuptoolsgui-64.exe -> buildlibsetuptools
copying setuptoolsgui-arm-32.exe -> buildlibsetuptools
copying setuptoolsgui.exe -> buildlibsetuptools
copying setuptoolscommandlauncher manifest.xml -> buildlibsetuptoolscommand
creating builddist.win32
creating builddist.win32egg
copying buildlibeasy_install.py -> builddist.win32egg
copying buildlibpkg_resources.py -> builddist.win32egg
creating builddist.win32eggsetuptools
copying buildlibsetuptoolsarchive_util.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolscli-32.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolscli-64.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolscli-arm-32.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolscli.exe -> builddist.win32eggsetuptools
creating builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandalias.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommanddist_egg.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommanddist_rpm.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommanddist_wininst.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommanduild_ext.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommanduild_py.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommanddevelop.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandeasy_install.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandegg_info.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandinstall.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandinstall_egg_info.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandinstall_lib.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandinstall_scripts.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandlauncher manifest.xml -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommand
egister.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommand
otate.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandsaveopts.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandsdist.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandsetopt.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommand est.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandupload.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommandupload_docs.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscommand\__init__.py -> builddist.win32eggsetuptoolscommand
copying buildlibsetuptoolscompat.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsdepends.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsdist.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsextension.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsgui-32.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolsgui-64.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolsgui-arm-32.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolsgui.exe -> builddist.win32eggsetuptools
copying buildlibsetuptoolspackage_index.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolspy24compat.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolspy27compat.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolssandbox.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsscript template (dev).py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsscript template.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolssite-patch.py -> builddist.win32eggsetuptools
copying buildlibsetuptoolsssl_support.py -> builddist.win32eggsetuptools
creating builddist.win32eggsetuptools ests
copying buildlibsetuptools estsdoctest.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools estspy26compat.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools estsserver.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_bdist_egg.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_build_ext.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_develop.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_dist_info.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_easy_install.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_egg_info.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_markerlib.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_packageindex.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_resources.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_sandbox.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_sdist.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_test.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests est_upload_docs.py -> builddist.win32eggsetuptools ests
copying buildlibsetuptools ests\__init__.py -> builddist.win32eggsetuptools ests
creating builddist.win32eggsetuptools\_backport
creating builddist.win32eggsetuptools\_backporthashlib
copying buildlibsetuptools\_backporthashlib\_sha.py -> builddist.win32eggsetuptools\_backporthashlib
copying buildlibsetuptools\_backporthashlib\_sha256.py -> builddist.win32eggsetuptools\_backporthashlib
copying buildlibsetuptools\_backporthashlib\_sha512.py -> builddist.win32eggsetuptools\_backporthashlib
copying buildlibsetuptools\_backporthashlib\__init__.py -> builddist.win32eggsetuptools\_backporthashlib
copying buildlibsetuptools\_backport\__init__.py -> builddist.win32eggsetuptools\_backport
copying buildlibsetuptools\__init__.py -> builddist.win32eggsetuptools
creating builddist.win32egg\_markerlib
copying buildlib\_markerlibmarkers.py -> builddist.win32egg\_markerlib
copying buildlib\_markerlib\__init__.py -> builddist.win32egg\_markerlib
byte-compiling builddist.win32eggeasy_install.py to easy_install.pyc
byte-compiling builddist.win32eggpkg_resources.py to pkg_resources.pyc
byte-compiling builddist.win32eggsetuptoolsarchive_util.py to archive_util.pyc
byte-compiling builddist.win32eggsetuptoolscommandalias.py to alias.pyc
byte-compiling builddist.win32eggsetuptoolscommanddist_egg.py to bdist_egg.pyc
byte-compiling builddist.win32eggsetuptoolscommanddist_rpm.py to bdist_rpm.pyc
byte-compiling builddist.win32eggsetuptoolscommanddist_wininst.py to bdist_wininst.pyc
byte-compiling builddist.win32eggsetuptoolscommanduild_ext.py to build_ext.pyc
byte-compiling builddist.win32eggsetuptoolscommanduild_py.py to build_py.pyc
byte-compiling builddist.win32eggsetuptoolscommanddevelop.py to develop.pyc
byte-compiling builddist.win32eggsetuptoolscommandeasy_install.py to easy_install.pyc
byte-compiling builddist.win32eggsetuptoolscommandegg_info.py to egg_info.pyc
byte-compiling builddist.win32eggsetuptoolscommandinstall.py to install.pyc
byte-compiling builddist.win32eggsetuptoolscommandinstall_egg_info.py to install_egg_info.pyc
byte-compiling builddist.win32eggsetuptoolscommandinstall_lib.py to install_lib.pyc
byte-compiling builddist.win32eggsetuptoolscommandinstall_scripts.py to install_scripts.pyc
byte-compiling builddist.win32eggsetuptoolscommand
egister.py to register.pyc
byte-compiling builddist.win32eggsetuptoolscommand
otate.py to rotate.pyc
byte-compiling builddist.win32eggsetuptoolscommandsaveopts.py to saveopts.pyc
byte-compiling builddist.win32eggsetuptoolscommandsdist.py to sdist.pyc
byte-compiling builddist.win32eggsetuptoolscommandsetopt.py to setopt.pyc
byte-compiling builddist.win32eggsetuptoolscommand est.py to test.pyc
byte-compiling builddist.win32eggsetuptoolscommandupload.py to upload.pyc
byte-compiling builddist.win32eggsetuptoolscommandupload_docs.py to upload_docs.pyc
byte-compiling builddist.win32eggsetuptoolscommand\__init__.py to __init__.pyc
byte-compiling builddist.win32eggsetuptoolscompat.py to compat.pyc
byte-compiling builddist.win32eggsetuptoolsdepends.py to depends.pyc
byte-compiling builddist.win32eggsetuptoolsdist.py to dist.pyc
byte-compiling builddist.win32eggsetuptoolsextension.py to extension.pyc
byte-compiling builddist.win32eggsetuptoolspackage_index.py to package_index.pyc
byte-compiling builddist.win32eggsetuptoolspy24compat.py to py24compat.pyc
byte-compiling builddist.win32eggsetuptoolspy27compat.py to py27compat.pyc
byte-compiling builddist.win32eggsetuptoolssandbox.py to sandbox.pyc
byte-compiling builddist.win32eggsetuptoolsscript template (dev).py to script template (dev).pyc
byte-compiling builddist.win32eggsetuptoolsscript template.py to script template.pyc
byte-compiling builddist.win32eggsetuptoolssite-patch.py to site-patch.pyc
byte-compiling builddist.win32eggsetuptoolsssl_support.py to ssl_support.pyc
byte-compiling builddist.win32eggsetuptools estsdoctest.py to doctest.pyc
byte-compiling builddist.win32eggsetuptools estspy26compat.py to py26compat.pyc
byte-compiling builddist.win32eggsetuptools estsserver.py to server.pyc
byte-compiling builddist.win32eggsetuptools ests est_bdist_egg.py to test_bdist_egg.pyc
byte-compiling builddist.win32eggsetuptools ests est_build_ext.py to test_build_ext.pyc
byte-compiling builddist.win32eggsetuptools ests est_develop.py to test_develop.pyc
byte-compiling builddist.win32eggsetuptools ests est_dist_info.py to test_dist_info.pyc
byte-compiling builddist.win32eggsetuptools ests est_easy_install.py to test_easy_install.pyc
byte-compiling builddist.win32eggsetuptools ests est_egg_info.py to test_egg_info.pyc
byte-compiling builddist.win32eggsetuptools ests est_markerlib.py to test_markerlib.pyc
byte-compiling builddist.win32eggsetuptools ests est_packageindex.py to test_packageindex.pyc
byte-compiling builddist.win32eggsetuptools ests est_resources.py to test_resources.pyc
byte-compiling builddist.win32eggsetuptools ests est_sandbox.py to test_sandbox.pyc
byte-compiling builddist.win32eggsetuptools ests est_sdist.py to test_sdist.pyc
byte-compiling builddist.win32eggsetuptools ests est_test.py to test_test.pyc
byte-compiling builddist.win32eggsetuptools ests est_upload_docs.py to test_upload_docs.pyc
byte-compiling builddist.win32eggsetuptools ests\__init__.py to __init__.pyc
byte-compiling builddist.win32eggsetuptools\_backporthashlib\_sha.py to _sha.pyc
byte-compiling builddist.win32eggsetuptools\_backporthashlib\_sha256.py to _sha256.pyc
byte-compiling builddist.win32eggsetuptools\_backporthashlib\_sha512.py to _sha512.pyc
byte-compiling builddist.win32eggsetuptools\_backporthashlib\__init__.py to __init__.pyc
byte-compiling builddist.win32eggsetuptools\_backport\__init__.py to __init__.pyc
byte-compiling builddist.win32eggsetuptools\__init__.py to __init__.pyc
byte-compiling builddist.win32egg\_markerlibmarkers.py to markers.pyc
byte-compiling builddist.win32egg\_markerlib\__init__.py to __init__.pyc
creating builddist.win32eggEGG-INFO
copying setuptools.egg-infoPKG-INFO -> builddist.win32eggEGG-INFO
copying setuptools.egg-infoSOURCES.txt -> builddist.win32eggEGG-INFO
copying setuptools.egg-infodependency_links.txt -> builddist.win32eggEGG-INFO
copying setuptools.egg-infoentry_points.txt -> builddist.win32eggEGG-INFO
copying setuptools.egg-infoentry_points.txt.orig -> builddist.win32eggEGG-INFO
copying setuptools.egg-info
equires.txt -> builddist.win32eggEGG-INFO
copying setuptools.egg-info op_level.txt -> builddist.win32eggEGG-INFO
copying setuptools.egg-infozip-safe -> builddist.win32eggEGG-INFO
creating dist
creating 'distsetuptools-0.9.8-py2.7.egg' and adding 'builddist.win32egg' to it
removing 'builddist.win32egg' (and everything under it)
Processing setuptools-0.9.8-py2.7.egg
Copying setuptools-0.9.8-py2.7.egg to c:python27libsite-packages
Adding setuptools 0.9.8 to easy-install.pth file
Installing easy_install-script.py script to C:Python27Scripts
Installing easy_install.exe script to C:Python27Scripts
Installing easy_install.exe.manifest script to C:Python27Scripts
Installing easy_install-2.7-script.py script to C:Python27Scripts
Installing easy_install-2.7.exe script to C:Python27Scripts
Installing easy_install-2.7.exe.manifest script to C:Python27Scripts
Installed c:python27libsite-packagessetuptools-0.9.8-py2.7.egg
Processing dependencies for setuptools==0.9.8
Finished processing dependencies for setuptools==0.9.8
则安装成功。
Nosetests、 nose-testconfig、Unittest requests、nose-selenium-0.07安装方法同上除了下载地址不同
Nosetests:
下载地址:https://pypi.org/project/nose/#files
运行命令:运行python setup.py install
nose-testconfig:
下载地址:https://pypi.org/project/nose-testconfig/#files
运行命令:运行python setup.py install
unittes:
下载地址:https://pypi.org/project/unittest/#files
运行命令:运行python setup.py install
requests
下载地址:https://pypi.org/project/requests/#files
运行命令:运行python setup.py install
nose-selenium
下载地址:https://pypi.org/project/nose-selenium/#files
运行命令:运行python setup.py install