简体   繁体   中英

PyInstaller with Anaconda Environment Not Packaging Pip Modules

So, I'm running PyInstaller according to the Kivy documentation in a dedicated Conda environment.

Only one module wasn't available through Anaconda, so I had to download it via Pip. Once my .spec file packages the .exe , running it in the terminal throws a ModuleNotFoundError for only that Pip-installed module. I didn't see a place in the .spec file to include just that module, either.

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?

就我而言,最简单的解决方案是获取模块的代码库并将其直接加载到项目中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM