Building wheel for faiss-cpu (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for faiss-cpu (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [8 lines of output] running bdist_wheel running build running build_py running build_ext building 'faiss._swigfaiss' extension swigging faiss\faiss\python\swigfaiss.i to faiss\faiss\python\swigfaiss_wrap.cpp swig.exe -python -c++ -Doverride= -I/usr/local/include -Ifaiss -doxygen -DSWIGWIN -o faiss\faiss\python\swigfaiss_wrap.cpp faiss\faiss\python\swigfaiss.i error: command 'swig.exe' failed: None [end of output]
note: This error originates from a subprocess, andis likely not a problem with pip. ERROR: Failed building wheel for faiss-cpu Successfully built openai-whisper sentence-transformers langdetect seqeval tika sqlalchemy Failed to build faiss-cpu ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects
ImportError: Failed to import ‘torch’. Run ‘pip install farm-haystack[inference]’. Original error: No module named ‘torch’
solution:pip install farm-haystack[inference] some warning:
1 2 3 4 5 6 7 8
WARNING: The script isympy.exe is installed in 'C:\Users\A\miniconda3\envs\haystack\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script nltk.exe is installed in 'C:\Users\A\miniconda3\envs\haystack\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts convert-caffe2-to-onnx.exe, convert-onnx-to-caffe2.exe and torchrun.exe are installed in 'C:\Users\A\miniconda3\envs\haystack\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts accelerate-config.exe, accelerate-estimate-memory.exe, accelerate-launch.exe and accelerate.exe are installed in 'C:\Users\A\miniconda3\envs\haystack\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.