[英]Multiple Hidden Imports in Pyinstaller
I know how to use the hidden import function in pyinstaller to import one python library.我知道如何使用 pyinstaller 中的隐藏导入 function 来导入一个 python 库。 What if I have multiple python libraries like pyautogui and pandas?
如果我有多个 python 库(如 pyautogui 和 pandas)怎么办? How do I hidden import them both?
我如何隐藏导入它们? I'm thinking it looks something like this:
我想它看起来像这样:
pyinstaller Pythonmain.py —hidden-import=‘pyautogui, pandas’
I'm sure it's simple but I can't find the answer anywhere.我敢肯定这很简单,但我无法在任何地方找到答案。
You can repeat the --hidden-import
option:您可以重复
--hidden-import
选项:
pyinstaller Pythonmain.py -—hidden-import pandas --hidden-import pyautogui
From the documentation , emphasis mine:从文档中,强调我的:
--hidden-import MODULENAME
--hidden-import MODULENAME
Name an import not visible in the code of the script(s).命名在脚本代码中不可见的导入。 This option can be used multiple times .
此选项可以多次使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.