techleadhd / chatgpt-retrieval

1.68k stars 802 forks source link

Module not Found error #36

Open sekhsoyebali opened 1 year ago

sekhsoyebali commented 1 year ago

chatgpt-retrieval-main % python chatgpt.py "what is my dog name" /Users/soyeb/Library/Python/3.9/lib/python/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 warnings.warn( Traceback (most recent call last): File "/Users/soyeb/Desktop/Work/chatgpt-retrieval-main/chatgpt.py", line 5, in from langchain.chains import ConversationalRetrievalChain, RetrievalQA ModuleNotFoundError: No module named 'langchain'

slim-python commented 1 year ago

install langchain by doing this in terminal

pip3 install langchain

imanseptian commented 1 year ago

You have to downgrade the unstructured package, try this: pip install unstructured==0.7.12

It works for me