Python embeddable zip: install Tkinter

前端 未结 1 532
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 04:32

Python embeddable zip comes without pip and Tkinter.
It is easy to install pip with get-pip.py in the embeddable zip.

How can we install Tkinter too (assuming we

1条回答
  •  时光取名叫无心
    2020-12-30 04:49

    Assuming you are on Windows and you also have a regular Python distribution installed (same version of the embedded distribution), to install Tkinter in the embedded distribution you can copy the following files from the regular Python distribution:

    • tcl folder to embedded_distribution_folder\ (root folder of the embedded distribution)
    • tkinter folder (which is under Lib) either to embedded_distribution_folder\Lib or to embedded_distribution_folder\
    • files _tkinter.pyd tcl86t.dll tk86t.dll (which are under DLLs) either to embedded_distribution_folder\DLLs or to embedded_distribution_folder\

    0 讨论(0)
提交回复
热议问题