evilpan / gptcli

ChatGPT in command line with OpenAI API (gpt-3.5-turbo/gpt-4/gpt-4-32k)
https://platform.openai.com/docs/introduction
GNU General Public License v2.0
279 stars 49 forks source link

cannot import name 'MarkdownIt' from 'rich.markdown' #7

Closed leolle closed 1 year ago

leolle commented 1 year ago

Hello, 我是windows 10, python 3.7.8.

Traceback (most recent call last): File "gptcli.py", line 10, in from rich.markdown import Markdown, MarkdownIt ImportError: cannot import name 'MarkdownIt' from 'rich.markdown'

evilpan commented 1 year ago

Could you please try updating rich module?

python3 -m pip install -U rich
leolle commented 1 year ago

Thank you.