The link is no longer valid.
I have hit the same issue, having tried a number of solutions including Dave's below. (Warning, new Python user).
My notes are in the project ($pyinstall fails.txt), highlights of solutions attempted:
pyinstaller cli.py # fails...
OSError: Python library not found: libpython3.8.dylib, libpython3.8m.dylib, Python, .Python
This would mean your Python installation doesn't come with proper library files.
This usually happens by missing development package, or unsuitable build parameters of Python installation.
* On Debian/Ubuntu, you would need to install Python development packages
* apt-get install python3-dev
* apt-get install python-dev
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)
python installed via pyenv install 3.8.3, at:
/Users/val/.pyenv/versions/3.8.3/lib/python3.8
Research found these suggestions, all failed in same way.....
says set DYLD_LIBRARY_PATH -- same result
export DYLD_LIBRARY_PATH=/Users/val/.pyenv/versions/3.8.3/lib/python3.8
export DYLD_LIBRARY_PATH=/Users/val/.pyenv/versions/3.8.3-dev/lib/python3.8
pyenv install 3.8-dev -- same result
libpython3.4m.so.1.0 --> /usr/lib -- but can't find mac version
brew install pyqt -- same result