Python Forum
PyInstaller Executable Does Nothing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyInstaller Executable Does Nothing
#18
(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-ctype
So when i now when i eg do as in link is posted.
pyinstaller --onefile --windowed --icon=idea.ico tk_test.py
Pyinstaller will now of course use Python 3.9,just the same setup for 3.8.
Reply


Messages In This Thread
PyInstaller Executable Does Nothing - by pdihawk - Feb-17-2021, 03:48 PM
RE: PyInstaller Executable Does Nothing - by buran - Feb-17-2021, 03:59 PM
RE: PyInstaller Executable Does Nothing - by buran - Feb-17-2021, 06:49 PM
RE: PyInstaller Executable Does Nothing - by buran - Feb-17-2021, 07:10 PM
RE: PyInstaller Executable Does Nothing - by snippsat - Feb-19-2021, 06:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with pyinstaller to create an executable file atlass218 0 2,602 May-15-2021, 11:01 AM
Last Post: atlass218
  Python 3.7, Windows 10, pyinstaller, winsound, no sound in executable kmarien 3 3,714 Nov-30-2020, 04:10 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020