How to package tensorflow with pyinstaller on MacOSX?
问题 I am distributing a python program that contains tensorflow. On OSX, python 2.7, I have no errors loading libraries and running tensorflow. When using pyinstaller to create an executable it fails with a PBR error. We can reduce this problem down to a simple (hopefully reproducible) error. Here is our program. Let's just load tensorflow and have it print out some path info. tf_check.py import tensorflow print(tensorflow.__file__) Run with pyinstaller. Bens-MacBook-Pro:tests ben$ pyinstaller tf