代码:
from python import Python fn f() raises: # This is equivalent to Python's `import numpy as np` let np = Python.import_module("numpy") let a = np.array([1, 2, 3]) print(a) fn main() raises: f()
mojo编译后执行,报错:
Mojo/Python interoperability error: Unable to locate a suitable libpython, please set `MOJO_PYTHON_LIBRARY`
==============================================
==============================================
标签:PYTHON,LIBRARY,MOJO,Python,报错,mojo From: https://www.cnblogs.com/devilmaycry812839668/p/17734267.html