[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installing Python 3.8.3 with tkinter


Trying to install Python 3.8.3 with tkinter I run configure with the 
following options

./configure --enable-optimizations --with-ssl-default-suites=openssl 
--with-openssl=/usr/local --enable-loadable-sqlite-extensions 
--with-pydebug --with-tcltk-libs='-L/opt/ActiveTcl-8.6/lib/tcl8.6' 

Running Python gives the following information

Python 3.8.3 (default, Jul 22 2020, 11:52:15)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sqlite3
 >>> import tkinter
Traceback (most recent call last):
 ? File "<stdin>", line 1, in <module>
 ? File "/usr/local/lib/python3.8/tkinter/", line 36, in <module>
 ??? import _tkinter # If this fails your Python may not be configured 
for Tk
ModuleNotFoundError: No module named '_tkinter'

Obviously there is something wrong with my configure options.

How do that correctly?

Thanks for any help.