I am trying to get netmiko
(which uses paramiko
) installed on Raspbian Jessie so that I can script SSH commands from my Pi. It doesn't seem to be that netmiko
works out-of-the-box as I had hoped. So here I am.
The cryptography
library is a requirement and this is what I am struggling with. From a fresh Jessie image I went and run the following from the terminal in sequence:
# sudo apt-get update
# sudo apt-get upgrade
# sudo apt-get install gcc libffi-dev libssl-dev python-dev
# sudo pip install cryptography
Everything installs ok, however the last command returns:
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 70, in <module>
import packaging.version
ImportError: No module named packaging.version
When I now run # pip
on its own I get the following returned:
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 70, in <module>
import packaging.version
ImportError: No module named packaging.version
I have been through the commands I run and pip works at every stage before the install cryptography command. It's like the cryptography install script broke pip.
Any help would be appreciated. I am new to Python and Linux.