I'm trying to convert python script to exe file. When i specify hidden imports(pandas, matplotlib, Pillow) I got error: Hidden import 'Pillow' not found. No errors abour matplotlib but when I run exe file I've also got error at the line of code where I import matplotlib thats says module not found
Comand from auto-py looks like this:
pyinstaller --noconfirm --onedir --console --hidden-import "pandas" --hidden-import "matplotlib" --hidden-import "Pillow"
Pandas module works fine I've got it imported before PIL and matplotlib and it also works in my other files
imports in my code looks like this:
- import pandas as pd
- import win32com.client as win32
- from PIL import Image
- import matplotlib.pyplot as plt
I am using Python 3.9.7 and PyInstaller: 5.1
Has anyone maybe had a similar problem?
I tried different version of matplotlib like this but I got same error as when I tried import Pillow
pyinstaller --noconfirm --onedir --console --hidden-import "matplotlib==3.2.2"
and use lowercase or uppercase in module names but none of this works.