Find answers from the community

Updated 2 months ago

Hi everyone Im building a web app using

Hi everyone! Im building a web app using gpt_index, when I run the app, I get this
Plain Text
from langchain.utilities import RequestsWrapper
22:03:11 worker.1 | ModuleNotFoundError: No module named 'langchain.utilities'

Im importing like so:
Plain Text
from gpt_index import GPTListIndex, GoogleDocsReader

Anyone has seen this before?
m
j
11 comments
Plain Text
pip show langchain
shows this:
Plain Text
Name: langchain
Version: 0.0.27
Summary: Building applications with LLMs through composability
Home-page: https://github.com/hwchase17/langchain
Author: 
Author-email: 
License: MIT
Location: /Users/saifabuhashish/Desktop/Projects/shamil/flask-base/env/lib/python3.7/site-packages
Requires: numpy, pydantic, pyyaml, requests, sqlalchemy
Required-by: gpt-index
you probably want to upgrade langchain
pip uninstall langchain and pip install it again
Ive done that several times, I still get the same error
it doesnt seem like theres a utilities folder within the langchain library
running pip install langchain gets me v 0.0.27, is that the correct version of langchain to work with?
nope langchain has been updated since then
can you do pip uninstall langchain ?
and then reinstall it
or pip install langchain --upgrade
Add a reply
Sign up and join the conversation on Discord