Я всегда получаю ошибку библиотеки на терминале. Что я должен делать?Python

Программы на Python
Anonymous
Я всегда получаю ошибку библиотеки на терминале. Что я должен делать?

Сообщение Anonymous »

Я пытаюсь настроить библиотеки проектов langchain на PyCharm и использую виртуальную среду. В моем проекте мне нужно использовать библиотеку langchain-chroma, но при использовании
pip install langchain_chroma
всегда получаю эту ошибку. Что я могу сделать? Можете ли вы помочь с этим?
Есть вывод терминала:
Building wheels for collected packages: chroma-hnswlib
Building wheel for chroma-hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for chroma-hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visu ... ild-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (chroma-hnswlib)
(.venv) PS D:\..burak\Python_Calismalari\Intern_Works\PyCharmProjects\LangChainProject3.1> pip install hnswlib
Collecting hnswlib
Downloading hnswlib-0.8.0.tar.gz (36 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in d:\..burak\python_calismalari\intern_works\pycharmprojects\langchainproject3.1\.venv\lib\site-packages (from hnswlib) (1.26.4)
Building wheels for collected packages: hnswlib
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'hnswlib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visu ... ild-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (hnswlib)



Подробнее здесь: https://stackoverflow.com/questions/789 ... hould-i-do

Вернуться в «Python»