If python -m PyInstaller gives a No module named PyInstaller error then your venv is a mess and PyInstaller is not in the correct environment. Using python -m ... forces it to use the correct PyInstaller (which doesn’t exist). The PyInstaller in your PATH presumably is left over from some other old environment (use where PyInstaller to find out which) or your root environment.
The fix is just to install PyInstaller in your venv using: venv\Scripts\activate pip install PyInstaller Verify that the 1st (or only) output from where PyInstaller now points inside your venv/Scripts. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/3b3b0bdb-1faa-4a74-8da4-8778813d6168n%40googlegroups.com.