I was trying to import some langchain
modules in a notebook in Microsoft Fabric like below.
The notebook is using Python 3.10
Step 1: pip install langchain openai
--> successful
Step 2:
from langchain.llms import OpenAI
from langchain.llms import AzureOpenAI
from langchain import PromptTemplate
from langchain.chat_models import ChatOpenAI
from langchain.chains import LLMChain
getting the below error:
ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/home/trusted-service-user/cluster-env/trident_env/lib/python3.10/site-packages/typing_extensions.py)
I tried updating the typing_extensions
module in Python but nothing seems to work.
Can some please help.