Skip to content

PyInstallerΒΆ

Adding VLC to PyInstaller on Mac and Windows

Looking for PyInstaller Instructions?

Link here: PyInstaller Instructions

Why Use VLC In the First Place?

If you want to play multimedia and audio in Python, there are some options for you.

One choice is VLC: It is lightweight, free and open source. VLC also works on many devices, like Windows, Linux, Mac, Android and iOS.

In this tutorial we will:

  • Set up a new project called BasicPyVLC and environment with Poetry
  • Use VLC to play audio in terminal for BasicPyVLC
  • Package VLC in a spec file
  • Package BasicPyVLC project on Windows using PyInstaller
  • Package BasicPyVLC project on Mac using PyInstaller
  • Check the packaged exe works on Windows and Mac with NO VLC previously installed (by testing on a Windows guest Virtual Machine sending the exe through shared network folders, dropbox, github, etc)