Open paulakhalil opened 1 month ago
Hello iyaja I would like to write python about with AI and Data center. Please you advice me about with a kind of program run on HTML
Setting this environment variable worked for me (macos):
export HNSWLIB_NO_NATIVE=1
Hello iyaja I would like to write python about with AI and Data center. Please you advice me about with a kind of program run on HTML
if i understand correctly you want to program in python to run on html? To run Python code within an HTML environment, you typically use frameworks or tools that allow Python to interact with HTML and the web. One popular framework for this purpose is Flask, which allows you to create web applications in Python.
Setting this environment variable worked for me (macos):
export HNSWLIB_NO_NATIVE=1
well im using windows 11, i will look into it and see how it goes. also im a newbie to all of this so i will see how it goes
Wheels build error is usually because something isn't installed right, update and upgrade (sorry on android lingo) make sure your running newest python if all else fails get a pre bundled so it doesn't wheel....oh also try installing all the dev python files sometimes that helps Trythis sudo apt-get update sudo apt-get install build-essential sudo apt-get install python3-dev
Then sudo apt-get install patchelf
pip install --upgrade pip setuptools
Isolate dependencies python3 -m venv myenv source myenv/bin/activate pip install -r requirements.txt (Sometimes just python not python3..again android)
pip install ninja pip install patchelf
In my case I had to install a newer compiler on Ubuntu 22.04
sudo apt install -y gcc-14 g++-14
Then I set the CC and CXX variables
export CXX=/usr/bin/g++-14
export CC=/usr/bin/gcc-14
after running the pip install -r requirements.txt this is what i get. Successfully built docx2txt asciitree pypika Failed to build chroma-hnswlib ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects i have the latest version of python working and its in the system Path.