proxy_pool ImportError: cannot import name etree

omhiaaxx  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(54)

Python 3.7.3 允许 ./start.sh 后报错:

from lxml import etree ImportError: cannot import name etree Traceback (most recent call last): File "proxyPool.py", line 21, in <module> from Config.setting import HEADER File "../Config/setting.py", line 94, in <module> checkConfig() File "../Config/setting.py", line 88, in checkConfig from ProxyGetter import getFreeProxy File "../ProxyGetter/getFreeProxy.py", line 21, in <module> from Util.WebRequest import WebRequest File "../Util/__init__.py", line 14, in <module> from Util.utilFunction import validUsefulProxy File "../Util/utilFunction.py", line 15, in <module> from lxml import etree ImportError: cannot import name etree

我检查了lxml路径,确实安装了的。

import lxml lxml <module 'lxml' from '/Library/Python/3.7/site-packages/lxml/**init**.py'>

`

echo $PYTHONPATH
/Library/Python/3.7/site-packages
`

e4eetjau

e4eetjau1#

@y0unghe 这我就不清楚了,试试重装大法

相关问题