langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Failed building wheel for llama-cpp-python

Open addy-12 opened this issue 2 years ago • 5 comments

Describe the bug Not able to run langflow properly because , it shows - "Building wheel for hnswlib (pyproject.toml) did not run successfully."

Browser and Version

  • Browser - Chrome
  • Version 114.0.5735.110

To Reproduce Steps to reproduce the behavior:

  1. In the command prompt - pip install langflow

Screenshots image

addy-12 avatar Jun 11 '23 17:06 addy-12

same windows 10 python --version Python 3.10.11

pleabargain avatar Jun 12 '23 06:06 pleabargain

I installed the new VS studio build tools and which included a c++ lib.

langflow installed.

pleabargain avatar Jun 13 '23 07:06 pleabargain

same problem,you may look the second answer here

Easterlings avatar Jun 13 '23 09:06 Easterlings

I installed the c++ library and i have python version - 3.11 I think it runs only on Python 3.10 versions Any idea how do I install that

addy-12 avatar Jun 15 '23 05:06 addy-12

@Easterlings how linux can install it ?

chizheyu avatar Jun 30 '23 08:06 chizheyu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 14 '23 09:08 stale[bot]

Hi guys, seems this question is not about llama-python-cpp wheel building error, but I did encounter that problem and finally fix the problem on Mac 2018 Sonoma 14.0 Intel Chip, by:

  1. update xcode to 15.0, update os version to Sonoma 14.0
  2. restart
  3. open xcode and let it download necessary components
  4. exec the following command in the terminal sudo xcode-select -s /Applications/Xcode.app
  5. then exec our pip install langflow command to check if the llama-python-cpp installing problem is resolved

By the way, I am using python 3.11 (pip 3.11), clang 15.0(before I exec the xcode-select command it's 11.x) to finish all these procedures.

fanfank avatar Oct 03 '23 03:10 fanfank