Imported module not found in PyInstaller

前端 未结 7 2050
一整个雨季
一整个雨季 2020-12-01 15:21

I\'m working in Windows, using PyInstaller to package a python file. But some error is occuring:

Traceback (most recent call last):
  File \"<         


        
7条回答
  •  星月不相逢
    2020-12-01 15:58

    In my case, I had to delete all folders and files related to pyinstaller in my directory, i.e. __pycache__, build, dist, and *.spec. I re-ran the build and the exe worked.

提交回复
热议问题