I am trying to create an exe file with pyinstaller that loads a pickle file of an sk-learn regression model. And the exe file couldn't execute, it just said 'fail to execute script'. But it runs perfectly fine on my code editor. I also tried joblib, it works the same. And I've read an old post on stackflow which asked the exact same question, but couldn't find an answer in that post: pyinstaller and loading pickle file
Please can anyone help me with that? Really appreciate it!