Improve Article Show Save Article Improve Article Save Article Tkinter is the most popular Python library used to create GUI-based applications. The name Tkinter comes from the Tk interface. In this article, we will look into the process of installing Tkinter in a Linux system. Note: Tkinter module comes in bundled with Python, so this article can be helpful for those who might face an error running Tkinter on their system. Follow the below step to install Tkinter on a Linux system: Step 1. Open up the Linux terminal and run the following command depending upon your version of Linux: For Debian-based Linux: sudo apt-get install python-tk For Arch-based Linux: sudo pacman -S tk For Fedora-based Linux: sudo dnf install python3-tkinter For RHEL, CentOS, Oracle Linux: sudo yum install -y tkinter tk-devel Installing Tkinter in debian based linux Step 2: After writing the above command hit the enter button and type your user password. After this, it will ask you to confirm the installation type “Y” in the terminal and hit enter. installing tkinter Step 3: To verify the Tkinter installation run the following command in the terminal. And you will see a pop-up window opened with two buttons showing the current version of Tkinter installed. python -m Tkinter Tkinter installed Note: The highlighted text shows the current version of the Tkinter i.e. 8.6 Optional AltAnalyze Dependencies to be InstalledThe compiled versions of AltAnalyze (Windows, Mac OSX and Ubuntu) should run immediately after extraction, however, the source code implementations may require additional Python modules installed. These are:
These libraries can be installed from source code or from installers provided by the open-source project websites. To determine if a pre-compiled version of AltAnalyze is compatible with your operating system, download the program and double-click the executable file name "AltAnalyze". The program can also be initiated from a terminal command-line (e.g., "./AltAnalyze in Linux). Feel free to contact us about any problems. Instructions for Windows/Linux/Mac OS XMac OS X By default, Mac OS X has Python installed along with Tkiner. Python version 2X should be default and used instead of python 3. Windows Install Python 2.7 from http://www.python.org. Tkinter is installed by default. Linux (see Ubuntu below) If python or tkinter is not installed, install Python 2.7 from http://www.python.org. Tkinter is installed by default. Test by
typing Cross-Platform Installation Options Python and Tkinter are all that are needed for AltAnalyze to run, but other dependencies are required if you wish to visualize WikiPathways (suds, PIL), cluster or QC plots (Matplotlib, Numpy, Scipy) or speed up the Fisher Exact Test analysis (scipy). To install these, see the below instructions.
Instructions for UbuntuAdding support for python applications call Tk is particularly challenging on Ubuntu, since Python is installed but Tkinter is not. We recommend:
Note: Installing from source is necessary when
For igraph, install as described here
Developers Only Both PyInstaller and cx_Freeze have been used to build AltAnalyze binary distributions. In general, PyInstaller works the best with the described patch for Ubuntu, whereas cx_Freeze will work for some but not all Ubuntu releases and configurations (e.g., compatible with 10.04).
Creating Compilers (advanced)If you wish to create your own compiled version of AltAnalyze for distribution to your users (e.g., custom versions or unsupported operating systems), install the above and be mindful of the following:
Potential Issues
|