Skip to content Skip to sidebar Skip to footer

Pyinstaller - Filenotfound Error

I have created a python script and converted it into a .exe file by using: Pyinstaller –-onefile RFOutputGraphs.py It works, however one of the jobs in the scripts is failing, d

Solution 1:

You can include the zip file in the .exe created by Pyinstaller using the --add-binary option as:

Pyinstaller --add-binary <path to zip>;currency_converter --onefile RFOutputGraphs.py

This copies the zip file from its location on your PC into the .exe file, and arranges for it to be extracted into the currency_converter folder (the location mentioned in the error message) when the .exe is run. Have a look at Using Pyinstaller.

Post a Comment for "Pyinstaller - Filenotfound Error"