Install Python and Pexpect modules in Ubuntu

Source: Internet
Author: User
Python installation: 1) download Python. There are two versions on the home page. I downloaded the version 2.7 (it is hard to understand that the Python official website must be accessible through the wall flip software). 2) after decompression, in this directory, run the following commands in sequence to install: ). /configureb) makec) makeinstall to check whether Python has been installed successfully: Enter python in the command line, and press Enter. If the python prompt is displayed, that is, the table

Python installation:

1) download Python. There are two versions on the home page, and I downloaded the version 2.7 (it is hard to understand that the Python official website must be accessible through the wall flip software)

2) decompress the package and run the following commands in the directory to install the package:

A)./configure

B) make

C) make install

Verify that Python is successfully installed:

Enter python in the command line and press Enter. If you see the python prompt, the installation is successful.

Install the Pexpect module:

1) download the module and decompress it.

2) decompress the package and run python./setup. py install in the directory (the root permission is required)

Check whether the Pexpect module is successfully installed:

Run the example in examples under the Pexpect directory for verification.

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.