Now, just to check you can create an empty window using Tkinter. sudo apt-get install python-pip Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 3.x. NOTE: Make sure you type Tkinter (not tkinter) in python2 and tkinter (not Tkinter) in python3. it wont show any error if it got imported correctly. If python was installed correctly you will get a > python Python 2.7.9 (default, Apr 2 2015, 15:33:21) Open your terminal and enter into your python shell. Now, lets check if Tkinter is working well with this little example On ubuntu python2 is still the defaultįinally, Install Tkinter sudo apt-get install python-tkįor python 3 sudo apt-get install python3-tk Python 2 is still very popular and many apps are made on it. If you are a newbie, I would recommend python 2 instead of python 3. If you want to install python 3 then enter the following. Type "help", "copyright", "credits" or "license" for more information. check your version (mine is python python if its installed then it will show information like version, help. In this tutorial we will see how to install it on linux and use it with an example.įirst, check if you have python installed and also check its version to develop desktop applications.Though Tkinter is very popular and is included with windows, macosx install of python, There are also alternative choices like pyQt, wxPython. Tkinter provides several GUI widgets like buttons,menu, canvas,text,frame,label etc. you can use it to make GUI based applications in python. Linux distros with yum installer can install tkinter module using the command: yum install tkinter. An entire afternoon spent on this - hope this note saves others from the pain. It worked for me - and I can now import Tkinter etc to my heart's content - yipidy-yay. Then re-run python setup.py build and python setup.py install in your python installation directory - and it should work. It may seem a pain, but the files are tiny and installation is very fast. configure -prefix=/home/cnel711 -exec-prefix=/home/cnel711 Then open up the readme files inside the. To install locally on Linux (I did it to my home directory), extract the. I spent ages on Google - but in the end, it's easy.ĭownload the tcl and tk from and install them locally too. If, like me, you don't have root privileges on your network because of your wonderful friends in I.S., and you are working in a local install you may have some problems with the above approaches.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |