Note: Another reason this can happen is if a package gets flagged by anti-virus vendors for malicious detections. A sha256 hash search for PyInstaller in VirusTotal reports the package has been flagged by security vendors. Same thing happens when installing security tools, i.e: Impacket.