Open luoliwoshang opened 3 months ago
I configured the python environment through
conda
, and I have set theLLGO_LIB_PYTHON
❯ echo $LLGO_LIB_PYTHON /opt/anaconda3/envs/python312env/lib/python3.12 (python312env)
❯ llgo run . dyld[64794]: Library not loaded: @rpath/libpython3.12.dylib Referenced from: <3A4ABF35-C399-30BF-A363-274C7529E109> /Users/zhangzhiyang/go/bin/callpy Reason: tried: '/libpython3.12.dylib' (no such file)
What happens if you set LLGO_LIB_PYTHON
to -L/opt/anaconda3/envs/python312env/lib -lpython3.12
?
I configured the python environment through
conda
, and I have set theLLGO_LIB_PYTHON
我通过conda
配置了 python 环境,并且设置了LLGO_LIB_PYTHON
❯ echo $LLGO_LIB_PYTHON /opt/anaconda3/envs/python312env/lib/python3.12 (python312env)
❯ llgo run . dyld[64794]: Library not loaded: @rpath/libpython3.12.dylib Referenced from: <3A4ABF35-C399-30BF-A363-274C7529E109> /Users/zhangzhiyang/go/bin/callpy Reason: tried: '/libpython3.12.dylib' (no such file)
What happens if you set
LLGO_LIB_PYTHON
to-L/opt/anaconda3/envs/python312env/lib -lpython3.12
?如果设置为LLGO_LIB_PYTHON
-L/opt/anaconda3/envs/python312env/lib -lpython3.12
?
It's still the same.
❯ echo $LLGO_LIB_PYTHON
-L/opt/anaconda3/envs/python312env/lib -lpython3.12
(base)
llgo/_pydemo/callpy on main [$?] via 🐹 v1.20.13
❯ llgo run .
dyld[35298]: Library not loaded: @rpath/libpython3.12.dylib
Referenced from: <CC44AA19-ED3D-33F8-816A-EB8B12E903AF> /Users/zhangzhiyang/go/bin/callpy
Reason: tried: '/libpython3.12.dylib' (no such file)
We need to prompt the user to set
DYLD_LIBRARY_PATH
I configured the python environment through
conda
, and I have set theLLGO_LIB_PYTHON
When 'DYLD_LIBRARY_PATH' is set, it will run normally
Environment
mac version: MacOS 14.2 M3 MacBook Pro (2023)
python version