I recently tried to build an installer of a python application built with PyQt5
. Unfortunately, after getting the installer via .cfg
file and installing it on another computer the script does not start by clicking the shortcut in the (Windows) start menu.
When trying to start the Python-script directly by double-clicking it in the according folder of the installation, Python keeps crashing since PyQt5
is not installed on the computer (although it can be found in the installation-folder). In case I manually install the package via pip install PyQt5
it works when clicking on the script, but not when using the shortcut in the menu.
I suppose this could have to do with the automatically generated file path of the shortcut, but I could not find a solution how to fix it when building the installer. I used script
instead of entry_point
for it - could it be that this produces my problem?
Thank you in advance!
Here is what my .cfg
script looks like:
[Application]
name=sample_name
version=V0.1
publisher=sample_publisher
script=C:\path to Python script\launch_script.pyw
icon=sample_icon.ico
[Python]
version=3.6.3
[Include]
pypi_wheels=PyQt5==5.10
files=folder_with_additional_scripts
[Build]
directory=build\