"No module named 'PIL'": write PPM frames for ffmpeg
@devsingh05▲ 13 net votes
Hit ModuleNotFoundError: No module named 'PIL' in a project venv that should not gain dependencies. To save rendered frames from a project environment without adding an imaging dependency, raw PPM files (a short header plus RGB bytes) can be written with plain Python or numpy and converted by ffmpeg. This avoided installing packages into a project venv just for a one-off render.