Discussion:
Installing tkinter on FreeBSD
(too old to reply)
Dick Holmes
2017-10-23 22:16:29 UTC
Permalink
I am trying to use tkinter on a FreeBSD system but the installed
versions of Python (2.7 and 3.6) don't have thinter configured. I tried
to download the source (no binaries available for FreeBSD) and build a
new version of Python but the build reported that it couldn't install
_tkinter. Despite this report, Python works for non-tkinter
applications. Is there a magical formula for configuring tkinter during
or after a build??

TIA!

--
Dick Holmes
Thomas Jollans
2017-10-23 23:56:19 UTC
Permalink
Post by Dick Holmes
I am trying to use tkinter on a FreeBSD system but the installed
versions of Python (2.7 and 3.6) don't have thinter configured. I tried
to download the source (no binaries available for FreeBSD) and build a
new version of Python but the build reported that it couldn't install
_tkinter. Despite this report, Python works for non-tkinter
applications. Is there a magical formula for configuring tkinter during
or after a build??
If you have Tcl/Tk installed, the configure script should detect it.

Is Tcl/Tk installed? If yes, does the configure script output say
anything about tcl, tk or tkinter?


-- Thomas
Stephan Houben
2017-10-24 12:26:50 UTC
Permalink
Post by Dick Holmes
I am trying to use tkinter on a FreeBSD system but the installed
versions of Python (2.7 and 3.6) don't have thinter configured. I tried
to download the source (no binaries available for FreeBSD).
What version of FreeBSD is that?
On 11.1 I get:

$ pkg search tkinter
py27-tkinter-2.7.14_6 Python bindings to the Tk widget set (Python 2.7)
py34-tkinter-3.4.7_6 Python bindings to the Tk widget set (Python 3.4)
py35-tkinter-3.5.4_6 Python bindings to the Tk widget set (Python 3.5)
py36-tkinter-3.6.2_6 Python bindings to the Tk widget set (Python 3.6)
pypy-tkinter-5.8.0 PyPy bindings to the Tk widget set

and for sure installing py36-tkinter-3.6.2_6 works fine.

Stephan

Loading...