The operating system used previously was CentOS, and today's operating system is Debian, so start adapting and changing.
Debian installation found that SSH is not installed by default, so install SSH service first and start
Apt-get Install ssh/etc/init.d/ssh Start
Next, install the Pexpect,paramiko module.
To install the above module, first install the setuptools module.
Installing the setuptools module
Wget tar xf setuptools-3.3.tar.gzcd setuptools-3.3python setup.py buildpython setup.py Install
2. After installing the Setuptools module, you can use the Easy_install command to install it.
Easy_install Paramiko Pexpect
Frequently encountered problems in installation are:
GCC is not installed, or Python-dev is not installed
Common error message information is as follows
Configure:error:in '/tmp/easy_install-c2hyp5/pycrypto-2.6.1 ': configure:error:no acceptable C compiler found in $PATHs Rc/md2.c:31:20:fatal error:python.h:no such file or directory #include "Python.h"
Workaround:
In the/etc/apt/sources.list file, if the following two lines Deb Http://mirrors.xmission.com/debian/testing main non-free contribdeb/HTTP// Http.us.debian.org/debian testing main contrib non-free and execute command: apt-get updateapt-get install gcc make autoconf Automakeapt-get Install Python-dev
After the above package is installed, the Paramiko and Pexpect modules are installed properly.
Python's Automation module installation