I am using cx-freeze4.3.3 on a 64-bit mac running python 2.7.8 installed via the anaconda python distribution. The program is very simple as follows:
import sys
from PySide.QtGui import QApplication, QDialog
app = QApplication(sys.argv)
form = QDialog()
form.show()
app.exec_()
The setup.py file is standard, with the following included:
options = {
'build_exe': {
'includes': 'atexit'
}
}
executables = [
Executable('test.py', base=base)
]
When running python setup.py build
, the following error occurs:
copying libpython2.7.dylib -> build/exe.macosx-10.5-x86_64-2.7/libpython2.7.dylib error: [Errno 2] No such file or directory: 'libpython2.7.dylib'
What could be the issue here? libpython2.7.dylib is located in /anaconda/lib, which is in the system path.