I found the root cause. It is certainly numpy version issue. After I installed faiss using the pip install conda install -c pytorch faiss-cpu
, the numpy version is overwritten to 1.26.4. Uninstall numpy and install again to get numpy 2.2.5 and use conda install faiss-cpu
to install faiss, all issues are resolved.