Monday, 9 November 2026

Building Pyfda Standalone Executable Under Windows

Christian Münker's pyfda: Python Filter Design Analysis Tool does exactly what it says on the tin - it is a most excellent tool for designing and analysing digital filters.

My usual (Linux) mode of operation is to clone the latest release and do the following:

conda create -n pyfda-dev python=3.11 -y
conda activate pyfda-dev
git clone https://github.com/chipmuenk/pyfda.git
cd pyfda
python -m pip install -r requirements.txt
python -m pip install -e .

Then to execute the app I just have a shell script containing the following:

~/anaconda3/envs/pyfda-dev/bin/pyfdax

This has always worked really well for me but I recently needed to share a standalone executable version for Windows so I needed to add a little bit to the procedure. It took me a few attempts to get it right so I thought I would document it in case anyone else wants to do the same:

conda create -n pyfda-dev python=3.11 -y
conda activate pyfda-dev
git clone https://github.com/chipmuenk/pyfda.git
cd pyfda
python -m pip install -r requirements.txt
python -m pip install -e .
python -m pip uninstall pyfda -y
python -m pip install pyinstaller pyinstaller-hooks-contrib
python -m PyInstaller --clean --noconfirm pyfdax.spec
dist\pyfdax.exe
 

Pyfdax.exe is now a completely standalone executable and can be used on any computer without installing Python.

No comments:

Post a Comment