Skip to content

Commit

Permalink
README:update install instructions for python's dyld setting
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed Jun 18, 2024
1 parent fbf50d4 commit 2e24a14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ For example, `/opt/homebrew/Frameworks/Python.framework/Versions/3.12/lib/libpyt
export LLGO_LIB_PYTHON=/opt/homebrew/Frameworks/Python.framework/Versions/3.12/lib/python3.12
```

And in order for the dynamic linker to find python correctly in other ways of install python(like `conda`).you need to set `DYLD_LIBRARY_PATH`

For example, python through conda is usually installed in `/opt/anaconda3/envs/your_env_name`, then we need to set the location of its Lib library to `DYLD_LIBRARY_PATH` like this:

```sh
export DYLD_LIBRARY_PATH=/opt/anaconda3/envs/your_env_name/lib:$DYLD_LIBRARY_PATH
```

Note that the file name must be written in a platform-independent format, using `python3.12` instead of `libpython3.12.dylib`.

Then you can run the demos:
Expand Down

0 comments on commit 2e24a14

Please sign in to comment.