Pages

Friday, 11 March 2016

How to install python modules on CentOS 7

Like many other languages Python is lucky enough to have it's own package manager (PIP) that will allow you to quickly (and hassle free - most of the time) install third party modules.

To install PIP we should firstly ensure that we have the EPEL repository installed (as I am using CentOS for this tutorial):

sudo yum install epel-release

and then install the PIP package using yum:

yum install python-pip

and finally install the relevent packages via PIP e.g.

pip install requests

No comments:

Post a Comment