问题
Traceback (most recent call last):
File "web_demo2.py", line 3, in <module>
from streamlit_chat import message
File "/root/miniconda3/envs/ChatGLM-6B-python37/lib/python3.7/site-packages/streamlit_chat/__init__.py", line 3, in <module>
from typing import Any, Literal, Optional, Union
ImportError: cannot import name 'Literal' from 'typing' (/root/miniconda3/envs/ChatGLM-6B-python37/lib/python3.7/typing.py)
解决方案
ERROR: Ignored the following versions that require a different python version: 0.0.2.1 Requires-Python >=3.8; 0.0.2.2 Requires-Python >=3.8