Windows 10 Manager 3.8.6 instal2/5/2024 Features of Yamicsoft Windows 10 Manager Full But it is not sufficient for 16.04, at least in my case.Īdditional requirement from OP's comment: sudo. Python3.8-tk installation as Ankur A Sharma said is also required. Previously I've used 20.04 with built in Python 3.8 version, which supports tkinter with only additional packages installing as it is for Python 3.5 on 16.04. Python 3.8 installed through apt and pyenv on 16.04 does not include tkinter, as I think or there's a some bug that does not allow to import it. Type "help", "copyright", "credits" or "license" for more information. Make -j2 # replace 2 by number of processor cores you have for next lines: -with-tcltk-includes='-I/usr/include' sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev python-tk python3-tk tk-devĮdit. Recompile and reinstall python3.8 specifying path to folders with tcl, tk includes and libraries. ModuleNotFoundError: No module named '_tkinter' Import _tkinter # If this fails your Python may not be configured for Tk Return _get_module_details(pkg_main_name, error)įile "/usr/local/lib/python3.8/runpy.py", line 110, in _get_module_detailsįile "/usr/local/lib/python3.8/tkinter/_init_.py", line 36, in Mod_name, mod_spec, code = _get_module_details(mod_name, _Error)įile "/usr/local/lib/python3.8/runpy.py", line 143, in _get_module_details Python3.8-tk is already the newest version (3.8.2-1+xenial1).īut it is not found: $ python3.8 -m tkinterįile "/usr/local/lib/python3.8/runpy.py", line 184, in _run_module_as_main Python3-tk is already the newest version (3.5.1-1).Ġ upgraded, 0 newly installed, 0 to remove and 12 not upgraded.Īnd python3.8-tk: Reading package lists. I installed python3-tk (it is required for showing plots in matplotlib): Reading package lists.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |