Issue
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 do not have an existing Python installation in the same machine)?
Solution
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 toembedded_distribution_folder\
(root folder of the embedded distribution)tkinter
folder (which is underLib
) either toembedded_distribution_folder\Lib
or toembedded_distribution_folder\
- files
_tkinter.pyd
tcl86t.dll
tk86t.dll
(which are underDLLs
) either toembedded_distribution_folder\DLLs
or toembedded_distribution_folder\
Answered By - lucatrv
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.