jhao104 / jhao104/proxy_pool

ImportError: cannot import name etree

Open
#450 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.