No module named when using PyInstaller

后端 未结 7 1908
说谎
说谎 2020-11-27 15:11

I try to compile a Python project under Windows 7 using PyInstaller. The project works fine, there are no issues, however when I try to compile it the result doesn\'t work.

相关标签:
7条回答
  • 2020-11-27 16:14

    I was facing the same problem and the following solution worked for me:

    1. I first removed the virtual environment in which I was working.
    2. Reinstalled all the modules using pip (note: this time I did not create any virtual environment).
    3. Then I called the pyinstaller.
    4. The .exe file created thereafter executed smoothly, without any module import error.
    0 讨论(0)
提交回复
热议问题