I am building a project in python using conda interpreter and environment in PyCharm. I have pandas, numpy, PyQt as dependencies which i have installed in my conda environment.
When I use pyinstaller to create an executable file, it does so. But when i open the file, and click a button to execute my python code, it shows the error message: Error processing file. Missing optional dependency ‘openpyxl’. Use pip or conda to install openpyxl.
I have installed openpyxl and rebuilt the executable still it shows the error. I have even edited the spec file to include ‘openpyxl’ in hidden imports.
What are the possible reasons this might be happening? How to fix it?
Sir Villain Sr. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.