How to install python setuptools library on Linux


Setuptools is a tool to download, build, install, upgrade, and uninstall Python packages.

Step 1:

wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py

Result:

[root@tutorialspots ~]# wget --no-check-certificate https://bootstrap.pypa.io/ez_setu
p.py
--2016-05-06 13:08:44--  https://bootstrap.pypa.io/ez_setup.py
Resolving bootstrap.pypa.io... 23.235.39.175
Connecting to bootstrap.pypa.io|23.235.39.175|:443... connected.
WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested ho
st name `bootstrap.pypa.io'.
HTTP request sent, awaiting response... 200 OK
Length: 12385 (12K) 1
Saving to: `ez_setup.py'

100%[======================================>] 12,385      --.-K/s   in 0.001s

2016-05-06 13:08:44 (21.3 MB/s) - `ez_setup.py' saved [12385/12385]

install setuptools 1

Step 2:

python2.7 ez_setup.py --insecure

Result:

...
copying setuptools/command/install.py -> build/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command
copying setuptools/command/develop.py -> build/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command
copying setuptools/command/register.py -> build/lib/setuptools/command
copying setuptools/command/rotate.py -> build/lib/setuptools/command
copying setuptools/command/upload_docs.py -> build/lib/setuptools/command
copying setuptools/command/saveopts.py -> build/lib/setuptools/command
copying setuptools/command/build_py.py -> build/lib/setuptools/command
copying setuptools/command/sdist.py -> build/lib/setuptools/command
copying setuptools/command/build_ext.py -> build/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command
copying setuptools/command/install_lib.py -> build/lib/setuptools/command
creating build/lib/setuptools/extern
copying setuptools/extern/__init__.py -> build/lib/setuptools/extern
creating build/lib/pkg_resources/extern
copying pkg_resources/extern/__init__.py -> build/lib/pkg_resources/extern
creating build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/pyparsing.py -> build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/__init__.py -> build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/six.py -> build/lib/pkg_resources/_vendor
creating build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/specifiers.py -> build/lib/pkg_resources
/_vendor/packaging
copying pkg_resources/_vendor/packaging/version.py -> build/lib/pkg_resources/_v
endor/packaging
copying pkg_resources/_vendor/packaging/_structures.py -> build/lib/pkg_resource
s/_vendor/packaging
copying pkg_resources/_vendor/packaging/__init__.py -> build/lib/pkg_resources/_
vendor/packaging
copying pkg_resources/_vendor/packaging/_compat.py -> build/lib/pkg_resources/_v
endor/packaging
copying pkg_resources/_vendor/packaging/utils.py -> build/lib/pkg_resources/_ven
dor/packaging
copying pkg_resources/_vendor/packaging/__about__.py -> build/lib/pkg_resources/
_vendor/packaging
copying pkg_resources/_vendor/packaging/markers.py -> build/lib/pkg_resources/_v
endor/packaging
copying pkg_resources/_vendor/packaging/requirements.py -> build/lib/pkg_resourc
es/_vendor/packaging
copying setuptools/script (dev).tmpl -> build/lib/setuptools
copying setuptools/script.tmpl -> build/lib/setuptools
copying setuptools/site-patch.py -> build/lib/setuptools
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/py31compat.py -> build/bdist.linux-i686/egg/setupto
ols
copying build/lib/setuptools/unicode_utils.py -> build/bdist.linux-i686/egg/setu
ptools
copying build/lib/setuptools/version.py -> build/bdist.linux-i686/egg/setuptools
creating build/bdist.linux-i686/egg/setuptools/command
copying build/lib/setuptools/command/upload.py -> build/bdist.linux-i686/egg/set
uptools/command
copying build/lib/setuptools/command/bdist_rpm.py -> build/bdist.linux-i686/egg/
setuptools/command
copying build/lib/setuptools/command/__init__.py -> build/bdist.linux-i686/egg/s
etuptools/command
copying build/lib/setuptools/command/test.py -> build/bdist.linux-i686/egg/setup
tools/command
copying build/lib/setuptools/command/alias.py -> build/bdist.linux-i686/egg/setu
ptools/command
copying build/lib/setuptools/command/egg_info.py -> build/bdist.linux-i686/egg/s
etuptools/command
copying build/lib/setuptools/command/setopt.py -> build/bdist.linux-i686/egg/set
uptools/command
copying build/lib/setuptools/command/easy_install.py -> build/bdist.linux-i686/e
gg/setuptools/command
copying build/lib/setuptools/command/install.py -> build/bdist.linux-i686/egg/se
tuptools/command
copying build/lib/setuptools/command/install_egg_info.py -> build/bdist.linux-i6
86/egg/setuptools/command
copying build/lib/setuptools/command/develop.py -> build/bdist.linux-i686/egg/se
tuptools/command
copying build/lib/setuptools/command/bdist_egg.py -> build/bdist.linux-i686/egg/
setuptools/command
copying build/lib/setuptools/command/bdist_wininst.py -> build/bdist.linux-i686/
egg/setuptools/command
copying build/lib/setuptools/command/register.py -> build/bdist.linux-i686/egg/s
etuptools/command
copying build/lib/setuptools/command/rotate.py -> build/bdist.linux-i686/egg/set
uptools/command
copying build/lib/setuptools/command/upload_docs.py -> build/bdist.linux-i686/eg
g/setuptools/command
copying build/lib/setuptools/command/saveopts.py -> build/bdist.linux-i686/egg/s
etuptools/command
copying build/lib/setuptools/command/build_py.py -> build/bdist.linux-i686/egg/s
etuptools/command
copying build/lib/setuptools/command/sdist.py -> build/bdist.linux-i686/egg/setu
ptools/command
copying build/lib/setuptools/command/build_ext.py -> build/bdist.linux-i686/egg/
setuptools/command
copying build/lib/setuptools/command/install_scripts.py -> build/bdist.linux-i68
6/egg/setuptools/command
copying build/lib/setuptools/command/install_lib.py -> build/bdist.linux-i686/eg
g/setuptools/command
copying build/lib/setuptools/depends.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/script (dev).tmpl -> build/bdist.linux-i686/egg/set
uptools
copying build/lib/setuptools/__init__.py -> build/bdist.linux-i686/egg/setuptool
s
creating build/bdist.linux-i686/egg/setuptools/extern
copying build/lib/setuptools/extern/__init__.py -> build/bdist.linux-i686/egg/se
tuptools/extern
copying build/lib/setuptools/extension.py -> build/bdist.linux-i686/egg/setuptoo
ls
copying build/lib/setuptools/ssl_support.py -> build/bdist.linux-i686/egg/setupt
ools
copying build/lib/setuptools/script.tmpl -> build/bdist.linux-i686/egg/setuptool
s
copying build/lib/setuptools/py27compat.py -> build/bdist.linux-i686/egg/setupto
ols
copying build/lib/setuptools/msvc9_support.py -> build/bdist.linux-i686/egg/setu
ptools
copying build/lib/setuptools/package_index.py -> build/bdist.linux-i686/egg/setu
ptools
copying build/lib/setuptools/archive_util.py -> build/bdist.linux-i686/egg/setup
tools
copying build/lib/setuptools/launch.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/py26compat.py -> build/bdist.linux-i686/egg/setupto
ols
copying build/lib/setuptools/utils.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/dist.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/windows_support.py -> build/bdist.linux-i686/egg/se
tuptools
copying build/lib/setuptools/sandbox.py -> build/bdist.linux-i686/egg/setuptools
copying build/lib/setuptools/site-patch.py -> build/bdist.linux-i686/egg/setupto
ols
copying build/lib/setuptools/lib2to3_ex.py -> build/bdist.linux-i686/egg/setupto
ols
copying build/lib/easy_install.py -> build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/pkg_resources
copying build/lib/pkg_resources/__init__.py -> build/bdist.linux-i686/egg/pkg_re
sources
creating build/bdist.linux-i686/egg/pkg_resources/extern
copying build/lib/pkg_resources/extern/__init__.py -> build/bdist.linux-i686/egg
/pkg_resources/extern
creating build/bdist.linux-i686/egg/pkg_resources/_vendor
copying build/lib/pkg_resources/_vendor/pyparsing.py -> build/bdist.linux-i686/e
gg/pkg_resources/_vendor
copying build/lib/pkg_resources/_vendor/__init__.py -> build/bdist.linux-i686/eg
g/pkg_resources/_vendor
creating build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/specifiers.py -> build/bdist.l
inux-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/version.py -> build/bdist.linu
x-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/_structures.py -> build/bdist.
linux-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/__init__.py -> build/bdist.lin
ux-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/_compat.py -> build/bdist.linu
x-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/utils.py -> build/bdist.linux-
i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/__about__.py -> build/bdist.li
nux-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/markers.py -> build/bdist.linu
x-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/requirements.py -> build/bdist
.linux-i686/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/six.py -> build/bdist.linux-i686/egg/pkg
_resources/_vendor
byte-compiling build/bdist.linux-i686/egg/setuptools/py31compat.py to py31compat
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/unicode_utils.py to unicode
_utils.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/version.py to version.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/upload.py to upload
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_rpm.py to bdi
st_rpm.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/__init__.py to __in
it__.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/test.py to test.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/alias.py to alias.p
yc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/egg_info.py to egg_
info.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/setopt.py to setopt
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/easy_install.py to
easy_install.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install.py to insta
ll.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_egg_info.py
 to install_egg_info.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/develop.py to devel
op.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_egg.py to bdi
st_egg.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_wininst.py to
 bdist_wininst.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/register.py to regi
ster.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/rotate.py to rotate
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/upload_docs.py to u
pload_docs.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/saveopts.py to save
opts.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/build_py.py to buil
d_py.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/sdist.py to sdist.p
yc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/build_ext.py to bui
ld_ext.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_scripts.py
to install_scripts.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_lib.py to i
nstall_lib.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/extern/__init__.py to __ini
t__.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/extension.py to extension.p
yc
byte-compiling build/bdist.linux-i686/egg/setuptools/ssl_support.py to ssl_suppo
rt.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/py27compat.py to py27compat
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/msvc9_support.py to msvc9_s
upport.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/package_index.py to package
_index.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/archive_util.py to archive_
util.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/launch.py to launch.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/py26compat.py to py26compat
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/utils.py to utils.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/windows_support.py to windo
ws_support.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/sandbox.py to sandbox.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/site-patch.py to site-patch
.pyc
byte-compiling build/bdist.linux-i686/egg/setuptools/lib2to3_ex.py to lib2to3_ex
.pyc
byte-compiling build/bdist.linux-i686/egg/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/__init__.py to __init__.
pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/extern/__init__.py to __
init__.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/pyparsing.py to
pyparsing.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/__init__.py to _
_init__.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/specif
iers.py to specifiers.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/versio
n.py to version.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/_struc
tures.py to _structures.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/__init
__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/_compa
t.py to _compat.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/utils.
py to utils.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/__abou
t__.py to __about__.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/marker
s.py to markers.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/requir
ements.py to requirements.pyc
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/six.py to six.py
c
creating build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/E
GG-INFO
copying setuptools.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-I
NFO
copying setuptools.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying setuptools.egg-info/zip-safe -> build/bdist.linux-i686/egg/EGG-INFO
creating dist
creating 'dist/setuptools-21.0.0-py2.7.egg' and adding 'build/bdist.linux-i686/e
gg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing setuptools-21.0.0-py2.7.egg
Copying setuptools-21.0.0-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding setuptools 21.0.0 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/setuptools-21.0.0-py2.7.egg
Processing dependencies for setuptools==21.0.0
Finished processing dependencies for setuptools==21.0.0

1 Comment

Leave a Reply