[英]PyInstaller with Anaconda Environment Not Packaging Pip Modules
So, I'm running PyInstaller according to the Kivy documentation in a dedicated Conda environment.因此,我在专用的 Conda 环境中根据Kivy 文档运行 PyInstaller。
Only one module wasn't available through Anaconda, so I had to download it via Pip.只有一个模块不能通过 Anaconda 获得,所以我不得不通过 Pip 下载它。 Once my .spec
file packages the .exe
, running it in the terminal throws a ModuleNotFoundError
for only that Pip-installed module.一旦我的.spec
文件打包了.exe
,在终端中运行它ModuleNotFoundError
为安装了 Pip 的模块抛出ModuleNotFoundError
。 I didn't see a place in the .spec
file to include just that module, either.我也没有在.spec
文件中看到只包含该模块的地方。
Is there a way to forcibly include the module (plus any of its dependencies) into a .spec
file, or is there a way to port a Pip-installed module directly to the Conda environment so that PyInstaller can spot it during packaging?有没有办法将模块(及其任何依赖项)强行包含到.spec
文件中,或者有没有办法将 Pip 安装的模块直接移植到 Conda 环境中,以便 PyInstaller 可以在打包过程中发现它?
就我而言,最简单的解决方案是获取模块的代码库并将其直接加载到项目中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.