【发布时间】:2022-02-17 00:09:59
【问题描述】:
我一直在使用 pyinstaller 创建使用 mne 包进行 EEG 信号分析的 Mac 应用程序。在最近一次更新 mne 之前,一切正常。
但是,现在在构建我的应用程序的过程中,我遇到了错误,
No such file or directory:
'/dist/MyApp.app/Contents/MacOS/mne/report/js_and_css/report.js'
当我尝试从命令行运行 unix 可执行文件时,错误仍然存在。我可以在 mne 模块目录中看到report.js,并且我尝试修改我的.spec 文件,以便pathex 包含包含report.js'的目录:
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mne/report/js_and_css/report.js'
但是,这并不能解决问题。如何让 pyinstaller 在构建过程中找到report.js 的位置?
【问题讨论】:
标签: python pyinstaller