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
, not pyenchant
.include-modules
option to cxfreeze - it's called packages
(or modules
for 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.