static-python-executable build your script to executable build python library ./configure --prefix=/usr/local/pythonversion --enable-shared make make install altinstall build your executable binary python static-build.py test_file.py /path/to/static/libpythonX.X.a