Install Python IDLE (Linux)

Source: Internet
Author: User

python IDLE (Integrated Development and learning environment) is an official lightweight Python IDE. In different Linux release versions, the installation commands are not the same, as follows:

1. Centos/fedora/rhel (Red Hat Enterprise Linux)

For these Linux release versions, the IDLE tool is included in the Python Toolkit python-tools or Python3-tools. The specific installation commands are as follows:


1.1 Install IDLE (Python 2)

sudo Yum Install Python-tools

Or

sudo Install Python-tools


1.2 Install IDLE (Python 3)

sudo Yum Install Python3-tools

Or

$ sudoinstall python3-tools

2. Debian/ubuntu Linux

In Debian/ubuntu Linux, the IDLE tool can be installed independently through the Package Manager Apt-get, with the following specific installation commands:

2.1 Install IDLE (Python 2)

sudo Install Idle


2.2 Install IDLE (Python 3)

sudo Install Idle3

Note:

If the above method cannot be installed successfully, you can consider installing from the source code, the source URL is https://github.com/python/cpython/tree/master/Lib/idlelib .

After the installation succeeds, the command to run IDLE (Python 2) is

$ idle

Its display interface, as shown in

The command to run IDLE (Python 3) is

$ idle3

Its display interface, as shown in

References

1. Wikipedia contributors. (2018, January 22). IDLE. in Wikipedia, the free encyclopedia. Retrieved 08:31, March 4, 2018, from https://en.wikipedia.org/w/index.php?title=IDLE&oldid=821760862

2. Howto:install Python idle IDE on Linux Operating System. https://www.cyberciti.biz/faq/rhel-centos-debian-ubuntu-python-idle-linux-installation/

3. Invoking Python IDLE on Linux. Https://stackoverflow.com/questions/14097795/invoking-python-idle-on-linux

4. IDLE Documentation-python 2. https://docs.python.org/2/library/idle.html

5. IDLE Documentation-python 3. https://docs.python.org/3/library/idle.html

Install Python IDLE (Linux)

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.