'PyInstaller + Tkinter, distribution not found
I've looked around as much as I can on this over the last 2 days and have not found this error message anywhere else. I am using a fresh Python 3.10.4 installation, a fresh virtualenv, and a fresh PyInstaller 5.0 installation. This is on Windows 10.
When packaging my program for distribution, I get the following warnings (but it still continues packaging):
718 WARNING: Unable to copy metadata for tkinter: The 'tkinter' distribution was not found and is required by the application
1078 INFO: Determining a mapping of distributions to packages...
9110 WARNING: Unable to determine requirements for tkinter: The 'tkinter' distribution was not found and is required by the application
I'm not sure why it's not able to find tkinter, given that it is now included with Python. For reference, my PyInstaller command is as follows:
pyinstaller --onedir --noconsole --key=ThisIsAKey --hidden-import=tkinter --collect-all=tkinter myscript.py
EDIT: Forgot to mention, the program does finish packaging and I can run the .exe file. The GUI I built even comes up. However, the filedialog window does not show up on startup as it should, and two of my three buttons do not function at all.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
