I’ve trying to include PyEnchant library to my exe-file. How do I do this?
I have been testing this with cx_Freeze:
“C:\Python33\python.exe” “C:\Python33\Scripts\cxfreeze” “C:\Temp\CSV Viewver\csv_viewer.py” –base-name=Win32GUI -–include-modules “pyenchant” –target-dir “C:\Temp\CSV Viewver\dist”
This does not work :/
I am using: Python 3.3 (x86) / cx_Freeze 4.3.1 (x86) / pyenchant 1.6.5 (x86)
enchant, notpyenchant.There isn’t an[I was wrong about this] See the docs.include-modulesoption to cxfreeze – it’s calledpackages(ormodulesfor single file modules).So try it with the option
--packages=enchant.But if your script imports enchant, cx_Freeze should automatically pick that up, so that you don’t need to specify it.