在cmd 中 執行 python3 -m pip install pymysql,報錯。
解決方法:在 https://pypi.org/project/html5lib/#files 下載 html5lib 1.0.1
然後在cmd 執行 python3 -m pip install html5lib-1.0.1-py2.py3-none-any.whl
安裝成功後,在執行 python3 -m pip install pymysql
就不會報錯了。 我的問題是這樣解決的,看看對你是否適用。