Unable to convert .py to .exe

I have designed a software that imports plotly ,
plotly.graph_objects and the software runs fine when running in .py but as soon as i convert it into .exe using PyInstaller it stops working !
i.e. nothing happens no error nothing its just a black screen