Use Conda to get a new vertual env commands are: conda deactivate
python3.10
python3.10 -m venv venv
source venv/bin/activate
pip install faiss-cpu --prefer-binary
i have written these commands and then it works fine