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
vmois
vmois14mo ago
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.
Sammi Turner
Sammi TurnerOP14mo ago
Excellent. Thank you!
ModularBot
ModularBot14mo ago
Congrats @Sammi Turner, you just advanced to level 1!
Kushagra
Kushagra14mo ago
Best way would be to use a docker container over a standard ubuntu image and run it in that in interactive mode
Sammi Turner
Sammi TurnerOP14mo ago
This question wasn't about Mojo installation. @vmois provided the correct answer. I have marked it as closed now.
Want results from more Discord servers?
Add your server