Install and use pip for python package management in Linux
Introduction Python is one of the most popular scripting languages in use today and due to its wide user base and community support, it has thousands to of modules available which help to add to its existing functionality. The version of python that comes pre-installed with Linux distributions has some modules already available. Modules for python are made available on the website pypi as archives. When we need to install a module we could do it manually by downloading the modules from the pypi site, extract the archive and compile and install the module. This method involves a lot of manual work on the part of the user and would be even more difficult when the concerned modules have other dependencies involved. To solve this problem, the pip software was introduced. The name pip is an acronym for python indexing project. The pip utility is a package manager for python modules available via pypi. We can use it to install and maintain python modules on the system. When installing modules using pip, it’s will take care of all the dependencies of the modules being installed. Install pip To install pip on a redhat based system, we use the following command [root@linuxnix ~]# yum install python-pip Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 epel/x86_64/metalink | 6.8 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00...
Read More