Linux installation Easygui

Source: Internet
Author: User

If you are having trouble finding information, you can read the Readme instructions under the installation file carefully, or you can get help.

This environment is Redhat 6.4, python2.7.9

Linux graphical display needs to install some dependent packages, such as libx11, Tkinter

Yum Install Libx11–y

Yum Install Libx11-devel.x86_64–y

Yum Install Tkinter–y

It is important to note that if your Python is not a version of the Linux system, but is later installed, such as the Redhat 6.4 comes with Python 2.6, my Python is later installed 2.7.9, you need to modify the configuration file

TK and TCL are software packages that tkinter rely on to view their installed versions

[Email protected] ~]# Rpm-qa | grep ^TK

Tk-8.5.7-5.el6.x86_64

Tkinter-2.6.6-64.el6.x86_64

[Email protected] ~]# Rpm-qa | grep ^TCL

Tcl-8.5.7-6.el6.x86_64

Remove the previous comment # from the following lines and modify the TK and TCL versions

[Email protected] ~]# cd/software/python-2.7.9/modules/

[Email protected] modules]# VI setup.dist

_tkinter _tkinter.c tkappinit.c-dwith_appinit \

-l/usr/local/lib \

-i/usr/local/include \

-ltk8.5-ltcl8.5 \

-lx11

Installation of auxiliary software packages for TK and TCL

Yum Install Tcl-devel tk-devel-y

Recompile installation Python,zlib is a package that is dependent on other modules and does not need to be installed

[Email protected] python-2.7.9]#/configure prefix=/opt/soft/python/--with-zlib=/usr/share/doc/zlib-1.2.3

Make

Make install

Where make is reported

Python build finished, but the necessary bits-to-build these modules were not found

Then there are some of the modules listed, which can be installed separately, not affected here, continue to install

Test whether the installation was successful

[[email protected] python-2.7.9]# Python

Python 2.7.9 (default, APR 14 2016, 10:51:01)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2

Type "Help", "copyright", "credits" or "license" for more information.

>>> Import Tkinter

>>>

Download easygui:http://easygui.sourceforge.net/

Easygui-0.97.zip

Easygui-docs-0.97.zip

Extract the Easygui cp to the Python root directory

[Email protected] software]# Unzip Easygui-0.97.zip

Archive:easygui-0.97.zip

creating:easygui/

inflating:easygui/easygui.py

Inflating:easygui/python_and_check_logo.gif

Inflating:easygui/python_and_check_logo.jpg

Inflating:easygui/python_and_check_logo.png

Inflating:easygui/zzzzz.gif

extracting:easygui/__init__.py

[Email protected] software]# cp-r easygui/opt/soft/python/

[[email protected] software]# python

Python 2.7.9 (default, APR 14 2016, 11:11:33)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2

Type "Help", "copyright", "credits" or "license" for more information.

>>> Import Easygui

>>> flavor = Easygui.choicebox ("which brand of computer are you using now", choices = [' Apple ', ' Lenovo ', ' Asus '])

Linux installation Easygui

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.