M
Modular15mo ago
olmirr

error: Unable to locate a suitable libpython when running Mojo executable

There's no libpython.so file with .so extension on macOS, how to set MOJO_PYTHON_LIBRARY then?
1 Reply
rdickert
rdickert15mo ago
on macos, libpython ends with .dylib. So you can do something like this (here's a real example using miniconda in an env called mojo1 ):
export MOJO_PYTHON_LIBRARY=/Users/me/miniconda3/envs/mojo1/lib/libpython3.11.dylib
export MOJO_PYTHON_LIBRARY=/Users/me/miniconda3/envs/mojo1/lib/libpython3.11.dylib
Want results from more Discord servers?
Add your server