-
Hi, In the FAQ, it mentions that the executable created from Pyinstaller can import new things that are on PYTHONPATH. Does it mean that we can import a new python module when running the Pyinstaller executable? Is there any guidelines for this issure? Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Like the FAQ states, But to do so, you will need to ensure yourself that external modules' dependencies are available, and that none of those dependencies are partially collected into the frozen application (if you plan to provide a full copy in external location). See https://github.com/orgs/pyinstaller/discussions/8190 |
Beta Was this translation helpful? Give feedback.
Like the FAQ states,
PYTHONPATH
is ignored, so you cannot use it to extend the module search path for PyInstaller-frozen application. But you can (programmatically, at the start of your program) extendsys.path
to load modules from external locations.But to do so, you will need to ensure yourself that external modules' dependencies are available, and that none of those dependencies are partially collected into the frozen application (if you plan to provide a full copy in external location). See https://github.com/orgs/pyinstaller/discussions/8190