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
Update README.md

Co-authored-by: Aofei Sheng <[email protected]>

Update README.md

Co-authored-by: Aofei Sheng <[email protected]>
  • Loading branch information
luoliwoshang and aofei committed Jun 18, 2024
1 parent fbf50d4 commit 70fda4a
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 installation (like Conda), you may need to set `DYLD_LIBRARY_PATH`.

For example, Python from Conda is usually installed in `/opt/anaconda3/envs/your_env_name`. So we need to set the location of its 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 70fda4a

Please sign in to comment.