File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/starlette/staticfiles.py", line 57, in __init__
raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory 'static/' does not exist
求DEBUG。
jerkzhang
网上看到的解决方案是:卸载fitz,安装pymupdf。(说错误是fitz造成的,要选用pymupdf代替fitz)
pip3 uninstall fitz pip3 install pymupdf