Python's Automation module installation

Source: Internet
Author: User

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.

    1. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.