Reputation: 31
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for yarl Failed to build aiohttp frozenlist multidict yarl ERROR: Could not build wheels for aiohttp, frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
I tried to install langchain package in vscode using the command pip install langchain.
expected : the package should get installed.
actual : note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for yarl Failed to build aiohttp frozenlist multidict yarl ERROR: Could not build wheels for aiohttp, frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
Upvotes: 2
Views: 3972
Reputation: 2816
Could you try below steps.
Create a virtual environment using the command
python -m venv my_venv_name
Activate the virtual environment by executing source
my_venv_name/bin/activate
PIP install libraries
pip install langchain
pip install """Other required libraries like OpenAI etc.
You should now successfully able to import
from langchain.llm import OpenAI
Lastly when executing the code, make sure you are pointing to correct interpreter in your respective editor
Upvotes: 0