在调试python应用的时候发生报错,部分信息如下:
Traceback (most recent call last):
File “D:\python\gpt_academic\main.py”, line 363, in
main()
File “D:\python\gpt_academic\main.py”, line 41, in main
from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, DummyWith
File “D:\python\gpt_academic\toolbox.py”, line 19, in
from shared_utils.advanced_markdown_format import format_io
File “D:\python\gpt_academic\shared_utils\advanced_markdown_format.py”, line 9, in
from pymdownx.superfences import fence_code_format
ModuleNotFoundError: No module named ‘pymdownx’
意思是缺少pymdownx模块,安装这个模块就可以了,但是不能直接安装pymdownx,因为模块的名字不是这个,应该是如下方式:
pip install pymdown-extensions