Skip to content

Commit f0812c4

Browse files
committed
Add upgrade instructions to the README
1 parent 17d4271 commit f0812c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ pip install llama-cpp-python
2828
The above command will attempt to install the package and build build `llama.cpp` from source.
2929
This is the recommended installation method as it ensures that `llama.cpp` is built with the available optimizations for your system.
3030

31+
If you have previously installed `llama-cpp-python` through pip and want to upgrade your version or rebuild the package with different compiler options, please add the following flags to ensure that the package is rebuilt correctly:
32+
33+
```bash
34+
pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir
35+
```
36+
3137
Note: If you are using Apple Silicon (M1) Mac, make sure you have installed a version of Python that supports arm64 architecture. For example:
3238
```
3339
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh

0 commit comments

Comments
 (0)