ImportError: cannot import name etree
- Dominant language
- Python
- Stars
- 23.7k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
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
from Config.setting import HEADER
File "../Config/setting.py", line 94, in
checkConfig()
File "../Config/setting.py", line 88, in checkConfig
from ProxyGetter import getFreeProxy
File "../ProxyGetter/getFreeProxy.py", line 21, in
from Util.WebRequest import WebRequest
File "../Util/__init__.py", line 14, in
from Util.utilFunction import validUsefulProxy
File "../Util/utilFunction.py", line 15, in
from lxml import etree
ImportError: cannot import name etree`
我检查了lxml路径,确实安装了的。
`
>>> import lxml
>>> lxml
`
`
> echo $PYTHONPATH
/Library/Python/3.7/site-packages
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.