Update README

This commit is contained in:
Andrei Betlen 2023-04-28 17:08:18 -04:00
parent 5423d047c7
commit e00beb13b5

View file

@ -23,6 +23,12 @@ Install from PyPI:
pip install llama-cpp-python
```
The above command will attempt to install the package and build build `llama.cpp` from source.
This is the recommended installation method as it ensures that `llama.cpp` is built with the available optimizations for your system.
This method defaults to using `make` to build `llama.cpp` on Linux / MacOS and `cmake` on Windows.
You can force the use of `cmake` on Linux / MacOS setting the `FORCE_CMAKE=1` environment variable before installing.
## High-level API
```python