handling of .pyc files

90 views
Skip to first unread message

Joe Lewis

unread,
Feb 17, 2021, 4:17:49 AM2/17/21
to PyInstaller
If I use PyInstaller to create an executable from python code that contains a binary (e.g. a .pyc file in a wheel package) how does the binary become a part of the exe that is created? For example in scipy.spatial  there is a python extension file named  qhull.cp38-winamd64.pyc. When I try to run the .exe created by PyInstaller,  attempting to execute the code:

from .qhull import *        

Will give error message "Importer:  DLL load failed. module qhull cannot be found".   The qhull module is the binary qhull.cp38-winamd64.pyc.
Reply all
Reply to author
Forward
0 new messages