Making exe for Python script with external dependencies #612
Unanswered
joshuaahuang
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I have also been struggling with this issue, but I haven't been able to find any solutions. Most of the workarounds are giving me errors, but I'm not exactly sure why. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I just ran in to this too 😬 I started with minimal example using Then I introduce policy.set_resource_handling_mode("files")
policy.resources_location_fallback = "filesystem-relative:lib"
python_config = dist.make_python_interpreter_config()
python_config.module_search_paths = ["$ORIGIN/lib"]
# .....
for resource in exe.pip_download(["numpy==1.24.1"]):
resource.add_location = "filesystem-relative:lib"
exe.add_python_resource(resource) But now I get:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to convert a Python script using numpy and pandas into a Python executable and I can't seem to figure out how. I'm using the exe.read_package_root and the instruction found here (https://pyoxidizer.readthedocs.io/en/v0.9.0/packaging_python_executable.html) to run and make the .exe, but whenever I try to package files instead of in-memory resources for numpy/pandas (https://pyoxidizer.readthedocs.io/en/v0.9.0/packaging_additional_files.html) the module of my script is no longer found. How can I make the executable work w/ the external dependencies?
Beta Was this translation helpful? Give feedback.
All reactions