简体   繁体   中英

import error when i try to import lxml.html

I received import error in the following code and I can't fix it

from urllib.error import HTTPError
from urllib.error import URLError
import urllib.request as url
import lxml.html

the error:

Exception has occurred: ImportError
DLL load failed: The specified module could not be found.
  File "C:\Users\ORIB1\Downloads\PageRank-master (1)\PageRank-master\src\altparse\alt_htmlparser.py", line 4, in <module>
    import lxml.html

What about install this package to interpreter or virtual environment?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM