Skip to content Skip to sidebar Skip to footer

Ansible 2.x Install Fails Due To Paramiko 2.0 Dependency Changes

Installing the latest Ansible via pip fails due to paramiko 2.0 changing their dependency from pycrypto to cryptography. Cryptography has a dependency on cffi, which requires libff

Solution 1:

To install cryptography >= 1.1 from pip, you need to install the developer package for libffi since it will contain the missing header file. Since you tagged Ubuntu, I am assuming you are using the apt package manager.

apt-get install libffi-dev

You will also need your distro's equivalent of ssl's development package and gcc for cryptography >= 1.1. If you are running this in your system environment then gcc is almost certainly already installed, but you may need to apt-get install libssl-dev also if that is missing.

The Fedora/RHEL equivalents are libffi-devel and openssl-devel, and can be installed with dnf or yum depending on your OS and version.

Solution 2:

Found one solution is to install specific versions of each:

pip install paramiko==1.17.0 ansible==2.0.0.2

Post a Comment for "Ansible 2.x Install Fails Due To Paramiko 2.0 Dependency Changes"