2

I am trying to learn genAI and installing langchain-chroma as part of the training. I get the following error. It shows an error unknown compilers. I am running this on windows. Is there a way to get all these compilers installed?

Collecting numpy<2.0.0,>=1.26.2 (from langchain-chroma) Using cached numpy-1.26.4.tar.gz (15.8 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] .. .. + C:\Users\akhil\genai\aienv\Scripts\python.exe C:\Users\akhil\AppData\Local\Temp\pip-install-q01s14_5\numpy_e38333924d1241a5b903eefdd6db344e\vendored-meson\meson\meson.py setup C:\Users\akhil\AppData\Local\Temp\pip-install-q01s14_5\numpy_e38333924d1241a5b903eefdd6db344e C:\Users\akhil\AppData\Local\Temp\pip-install-q01s14_5\numpy_e38333924d1241a5b903eefdd6db344e.mesonpy-l6vi0u9w -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\akhil\AppData\Local\Temp\pip-install-q01s14_5\numpy_e38333924d1241a5b903eefdd6db344e.mesonpy-l6vi0u9w\meson-python-native-file.ini The Meson build system Version: 1.2.99 Source dir: C:\Users\akhil\AppData\Local\Temp\pip-install-q01s14_5\numpy_e38333924d1241a5b903eefdd6db344e Build dir: C:\Users\akhil\AppData\Local\Temp\pip-install-q01s14_5\numpy_e38333924d1241a5b903eefdd6db344e.mesonpy-l6vi0u9w Build type: native build Project name: NumPy Project version: 1.26.4 WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
  Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
1
  • Even I am getting the same error. Let me know once resolved Commented Feb 4 at 18:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.