This is the assignment for Data Mining Project
cx_Freeze, random, time
Below the "build" folder, find the Apriori.exe, download with the python36.dll, and double click.
version 0.2
Today I solved the problem about py2exe/cx_Freeze/pyinstaller. Before solving it finally, I tried different methods and websites, they are:
1.py2exe
It needs to bundle some dll files with you exe. I'll take it as liscence, apparently, with good luck, you can draw you foot on it somewhere in your computer. 'Cause the microsoft liscence is prevailing
One thing I need to warn, py2exe packages is not so friendly to the newst version for python, see SorceForge. There is only 2.7 version available. Therefore, there is a guy in the first website suggested using Cpython to get a better experience in deving.
2.pyinstaller
And when you want to run you result. You need to go to dist directory(which means distributable and contains the supporting files) to find the .exe.
3.cx_Freeze
The good thing about this package is that when you run the setup.py, better put the script itself in the same directory with python.exe.
I don't know why, but it seems to be explained on stack-over-flow
The project's name, will just be the same as name below
setup(
name = "hello",
options = options,
version = "0.0",
description = 'This trail I hope it will work!',
executables = executables
)
Actually, myself got this traceback:
*** WARNING *** unable to create version resource
install pywin32 extensions first
writing zip file build\exe.win-amd64-3.6\lib\library.zip
执行python setup.py build程序的报错。
The second time when I run the PowerShell using Shift+Right Click, it went away!
Based on what had been done 4 days ago, the runtime0.py state the Console I/O of the algorithm, which is like below:
More details, see in the report.