[Chicago] Python 3.5 in Ubuntu???

Robare, Phillip (TEKSystems) proba at allstate.com
Thu Jan 21 22:15:05 EST 2016


Your version of python was probably compiled without the support for Tkinter.  If Unix is used as a server you don’t need the graphic stuff.  I believe there is an additional package to apt-get install for Ubuntu that will provide idle and x-windows support.

Learning about how Python is built is going down a rabbit hole which may eventually be rewarding but is sure to be quite confusing to start with.  Check out the documentation of the sysconfig and distutils.sysconfig modules to start.

Phil Robare
TEK Systems / Allstate QR&A
847-667-0431
D2W-703F

From: Chicago [mailto:chicago-bounces+proba=allstate.com at python.org] On Behalf Of Lewit, Douglas
Sent: Thursday, January 21, 2016 5:28 PM
To: The Chicago Python Users Group
Subject: [Chicago] Python 3.5 in Ubuntu???

Hey guys,

I recently installed Python 3.5 Idle on my Mac.  Very simple installation.  The installation was not as easy or as painless on my Linux machine.  I followed the directions, and Python 3.5 ( or at least the command to launch it ) was successfully installed to /usr/bin.  BUT there were/are a couple of little issues.  Initially I was not able to launch Terminal!  ( Not good because I use Terminal quite a lot. )  I did some homework on the Ubuntu Forum and learned that Ubuntu's Terminal requires Python 3.4 as a dependency.  During the installation of Python 3.5, the symlink "python3" got changed to point to Python 3.5.  So I had to go back to /usr/bin ( in xterm, a Terminal alternative for just these emergencies ) and rename my "python3" symlink so that it points to Python 3.4 and NOT Python 3.5.   With that done I was able to launch Terminal just like before.

BUT.... idle3.5 does not work.  The command is there in usr/bin, but it fails with some warning message about how my version of Python is not configured to work with Tk or Tkinter.   ( However, my other Python versions do not have this problem, and for those versions IDLE runs without a glitch. )  Does anyone have a solution for this?  How can I configure my Python 3.5 to successfully import Tkinter and thus launch an IDLE shell?  Any advice is appreciated.  I'm running Ubuntu 15.04 LTS.  Thanks!!!

Best,

Douglas Lewit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20160122/48c52568/attachment-0001.html>


More information about the Chicago mailing list