- install from conda-forge
conda install -c conda-forge pyinstaller
- compile into one fat executable
# make sure activate conda env first
# source activate root
LD_LIBRARY_PATH="$(conda info --envs | sed -n 's/.*\*[ ]*\(\/.*\)$/\1/p')/lib/" pyinstaller -F <your_python_script>
- checkout generated executable in
dist/