Xlwings UDFs while using frozen Python file

拜拜、爱过 提交于 2019-12-07 12:48:26

问题


I am trying to integrate xlwings with an excel spreadsheet that we use on our network drive. However, I do not want to install Python, Xlwings, or any other modules on any computer except for the developers. In addition, I would like to use UDFs only, we do not have an interest in using Macros. I read here (https://www.reddit.com/r/Python/comments/22i4a1/xlwings_the_easiest_way_to_deploy_your_python/) that there is a way to freeze your python script which would prevent the need for all users to have Python installed. As a result, I used cx_Freeze to freeze my script. Assume I have these files in the "I" drive and that there are no other files: test.xlsm, test.py, test.exe, Dir (folder containing dll and pyd files generated by cx_Freeze. I am using Python 2.7 and xlwings 0.7.2. Any help would be greatly appreciated!

来源:https://stackoverflow.com/questions/37710357/xlwings-udfs-while-using-frozen-python-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!