External Python dependencies and Mojo binaries
I've just compiled a small Mojo program that uses Python iterop and the numpy library. Running the binary, everything works fine.
Hypothetically though, if I shared the binary with someone using the same os and hardware architecture as me, would they need to have Python and numpy installed (bare metal or virtualenv) to run the binary?
Or is the binary standalone?
5 Replies
They will need Python with the same packages. To interface with Python, Mojo runs and communicates with CPython
You can validate yourself by deleting a Python package with pip and trying to see if the same Mojo binary will work.
Excellent. Thank you!
Congrats @Sammi Turner, you just advanced to level 1!
Best way would be to use a docker container over a standard ubuntu image and run it in that
in interactive mode
This question wasn't about Mojo installation. @vmois provided the correct answer. I have marked it as closed now.