How Do You Quickly Install Several Python Packages Such as Pycrypto and Paramiko on RedHat Linux?

Problem scenario
How do you install pycrypto, paramiko and the several related packages without copying several individual packages on a RedHat Linux server?

Background
It can be tedious getting the different dependencies of python packages installed.  By downloading various .tar.gz files, you have to unpack them, then run a series of "python setup.py ..." commands. While it is not advisable to install more packages than are strictly necessary, there are some benefits to doing it (e.g., having these features available to you).

Solution
Install pip, Ansible and other packages.  Run these commands as root:

yum -y update
yum -y install java gcc python-openssl openssl-devel openssl
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
pip install ansible

Leave a comment

Your email address will not be published. Required fields are marked *