救了老命了。
安装lxml总报错误:
symbol not found in flat namespace ‘_PyDescr_IsData
搜索了N多网站都找不到解决办法。最后在这个不知名网站找到了:
https://pullanswer.com/questions/symbol-not-found-in-flat-namespace-_pydescr_isdata
原因就1个:
If anybody is getting error after installed (while running) symbol not found in flat namespace (_PyDescr_IsData)
, it is because virtual env’s python version is different from system’s python version
按照这个办法,删除了Python官网下载安装的Python,重新用homebrew的Python新建了一个venv,然后就搞定了!