pip install Cython
We create a new folder in the file needs to be packaged in .py where py file, here named build_pyd.py, which reads as follows:
Import distutils.core Setup from from Cython.Build Import cythonize Setup ( name = 'the any words .....' , ext_modules = cythonize ([ "outer cladding .py need to be introduced" ,]), )
Execute the following command cmd
python build_pyd.py build_ext --inplace
And other pyd file is compiled, executed pyinstaller package py file
pyinstaller .\****.py