步骤
-
将ipynb导出为py:jupyter notebook -> File -> Download ad -> Pyhton(.py)
-
安装pyinstaller
pip install pyinstaller
- 在.py文件所在目录,cmd,执行
pyinstaller -F xxx.py
- 随后生成一个dist文件夹,exe文件就此生成
常见问题
- pyinstaller打包时报错 RecursionError: maximum recursion depth exceeded while calling a Python object
解决:成功解决RecursionError: maximum recursion depth exceeded while calling a Python object - 打包完成后