Skip to content

Commit

Permalink
Update docs for dynamic loading of libpython (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
talumbau and chunnienc authored Jul 28, 2024
1 parent e45d1d3 commit 1fad116
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ Alternately, the nightly version can be installed with:
pip install ai-edge-torch-nightly
```

### Update LD_LIBRARY_PATH if necessary

Torch XLA builds a shared library, `_XLAC.so` that needs to link to the version of Python
it was built with (currently 3.10 or 3.11). In order to ensure that `import _XLAC` can succeed,
update the LD_LIBRARY_PATH to the lib directory of your Python environment:

```bash
export LD_LIBRARY_PATH=<path to Python installation>/lib:$LD_LIBRARY_PATH
```


* The list of versioned releases can be seen [here](https://github.com/google-ai-edge/ai-edge-torch/releases).
* The full list of PyPi releases (including nightly builds) can be seen [here](https://pypi.org/project/ai-edge-torch/#history).

Expand Down

0 comments on commit 1fad116

Please sign in to comment.