To install easy_install on Linux using yum you will need to install the python-setuptools and python-setuptools-devel packages. Installing these packages with yum is easy by following the directions below.
Both of these packages were installed using the Atomic repository. You can install Atomic by following step 1 in this article.
Yum Command To Install python-setuptools:
- yum install python-setuptools
An example of a python-setuptools install is below.
Example Of python-setuptools Being Installed:
- [root@server ~]# yum install python-setuptools
- Loading "fastestmirror" plugin
- Loading mirror speeds from cached hostfile
- * base: pubmirrors.reflected.net
- * updates: mirrors.serveraxis.net
- * addons: mirror.anl.gov
- * ruby: repo.premiumhelp.eu
- * extras: mirror.sanctuaryhost.com
- Setting up Install Process
- Parsing package install arguments
- Resolving Dependencies
- --> Running transaction check
- ---> Package python-setuptools.noarch 0:0.6c5-2.el5 set to be updated
- --> Finished Dependency Resolution
- Dependencies Resolved
- =============================================================================
- Package Arch Version Repository Size
- =============================================================================
- Installing:
- python-setuptools noarch 0.6c9-2.el5 base 479 k
- Transaction Summary
- =============================================================================
- Install 1 Package(s)
- Update 0 Package(s)
- Remove 0 Package(s)
- Total download size: 479 k
- Is this ok [y/N]: y
- Downloading Packages:
- (1/1): python-setuptools- 100% |=========================| 479 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing: python-setuptools ######################### [1/1]
- Installed: python-setuptools.noarch 0:0.6c5-2.el5
- Complete!
You will also need to install python-setuptools-devel as displayed below.
Yum Command To Install python-setuptools-devel:
- yum install python-setuptools-devel
An example of python-setuptools-devel being displayed is below.
Example Of python-setuptools-devel Being Installed:
- [root@server ~]# yum install python-setuptools-devel
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * atomic: www.atomicorp.com
- * rpmforge: ftp-stud.fht-esslingen.de
- * base: mira.sunsite.utk.edu
- * updates: dist1.800hosting.com
- * addons: www.cyberuse.com
- * extras: pubmirrors.reflected.net
- Setting up Install Process
- Parsing package install arguments
- Resolving Dependencies
- --> Running transaction check
- ---> Package python-setuptools-devel.noarch 0:0.6c9-2.el5.art set to be updated
- --> Finished Dependency Resolution
- Dependencies Resolved
- ====================================================================================================================================
- Package Arch Version Repository Size
- ====================================================================================================================================
- Installing:
- python-setuptools-devel noarch 0.6c9-2.el5.art atomic 41 k
- Transaction Summary
- ====================================================================================================================================
- Install 1 Package(s)
- Update 0 Package(s)
- Remove 0 Package(s)
- Total download size: 41 k
- Is this ok [y/N]: y
- Downloading Packages:
- python-setuptools-devel-0.6c9-2.el5.art.noarch.rpm | 41 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : python-setuptools-devel [1/1]
- Installed: python-setuptools-devel.noarch 0:0.6c9-2.el5.art
- Complete!
Hi
Please help me to install python-setuptools. I am getting the following error:
[gmahendra@site-packages]$ sudo yum install python-setuptools
Password:
Loading “rhnplugin” plugin
Loading “installonlyn” plugin
Loading “security” plugin
Setting up Install Process
Setting up repositories
rhel-i386-server-5 100% |=========================| 1.3 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
Thanks
Mahendra
Hello Mahendra,
It appears that python-setuptools is already installed. You can verify this by typing the following command from the shell without the quotes, “yum list “PYTHON-SETUPTOOLS”. It should show up as the only package in that listing with INSTALLED out to the right.
Let me know!~
Thx. helped a lot.
Hello zapping,
No problem at all. Thank you for taking the time to leave feedback.
Thanks.
alex
Nice post !! keep on writing :D
Hello sandeep,
Thanks. We write articles every day on Question Defense. :)
Thanks.
alex