CANNOT RUN PYTHON SCRIPT AFTER PACKING THE SCRIPT

I have created a python script using pycharm, in the pycharm enviroment all the imported modules/packages are all okay.
i can run the script using pycharm without any problem

when i pack the script to .exe file and i run it, it shows

modulenotfounderror no module named 'openpyxl' "
[20728] failed to execute script.

The openpyxl module was installed successfully.

Can please help me to solve this issue?

Thank you in advance!!

Please sign in to leave a comment.