I am using a Langchain to create a LLM in python version 3.12.4. However, I am getting an error mentioned below:
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
while importing from langchain.text_splitter import RecursiveCharacterTextSplitter
. I have decided to switch to the lower version of Python (3.11) according to the answer given in text.
But I would like to know how can I switch to the different version of python (from 3.12 to 3.11) to successfully run Langchain without an error.
I tried installing 3.11.9, created a Virtual Enviornment called Langchain, activated it. but now I want to write my code by acrivating a Python version 3.11.9. However the Jupyter notebook still shows the active version 3.12.4.
LLM with Urvesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.