pyinstaller打包出现 no module 的错 尝试换个命令方式 python -m PyInstaller -F your_script.py 有可能是全局的pyinstaller 并不是当前虚拟环境的 pyinstaller 导致的no module的错