(Feb-18-2021, 10:13 PM)pdihawk Wrote: So I Installed IDLE 3.7.1, copied it over and still no luck. It still tells me that tkinter did not import successfully.That's not how you do it,and IDLE come with Python.
Look at Python 3.9/3.8 and pip installation under Windows.
So if Python 3.8 is the main version you want to use then
python
and pip
should point to Python 3.8.If not fix
Environment Variables Path
as i explain in link over.Example
cmd
.# Test Python C:\>python -V Python 3.9.1 # Test pip C:\>pip -V pip 20.2.4 from c:\python39\lib\site-packages\pip (python 3.9)Now you see that
pip
point to Python 3.9.Then will
pip install pyinstaller --upgrade
install to Python 3.9.# Install pyinstaller C:\>pip install pyinstaller --upgrade Collecting pyinstaller Downloading ..... Successfully built pyinstaller # See Location C:\>pip show pyinstaller Name: pyinstaller Version: 4.2 Summary: PyInstaller bundles a Python application and all its dependencies into a single package. Home-page: http://www.pyinstaller.org/ Author: Hartmut Goebel, Giovanni Bajo, David Vierra, David Cortesi, Martin Zibri cky Author-email: None License: GPLv2-or-later with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones) Location: c:\python39\lib\site-packages Requires: pyinstaller-hooks-contrib, altgraph, setuptools, pefile, pywin32-ctypeSo when i now when i eg do as in link is posted.
pyinstaller --onefile --windowed --icon=idea.ico tk_test.pyPyinstaller will now of course use Python 3.9,just the same setup for 3.8.