You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I type this code into the terminal "pip install -e '.[dev]'" I get an error that fails . Now I will tell you how I solved this error.
If you use Ubuntu 22.04 LTS
The error message suggests missing build dependencies for compiling the C++ part of llama-cpp-python. Luckily, Ubuntu provides a convenient package to install these:
sudo apt install build-essential
This command will install gcc (C compiler), g++ (C++ compiler), and other necessary tools for building C/C++ projects.
After this try this command again:
pip install llama-cpp-python
If you use Windows
I would like to share here the solution that I found on stackoverflow and tried on windows and it worked.
Describe the bug
When I type this code into the terminal "pip install -e '.[dev]'" I get an error that fails . Now I will tell you how I solved this error.
If you use Ubuntu 22.04 LTS
The error message suggests missing build dependencies for compiling the C++ part of llama-cpp-python. Luckily, Ubuntu provides a convenient package to install these:
sudo apt install build-essential
This command will install gcc (C compiler), g++ (C++ compiler), and other necessary tools for building C/C++ projects.
After this try this command again:
pip install llama-cpp-python
If you use Windows
I would like to share here the solution that I found on stackoverflow and tried on windows and it worked.
Note
The first issue I shared was how I solved the problem I encountered, I hope it helped.
The text was updated successfully, but these errors were encountered: