2021年1月25日星期一

from lxml.html import fromstring module not found, lxml installed

I am trying to import from lxml.html import fromstring in VSCode but I am getting the error: ModuleNotFoundError: No module named 'lxml' I have installed lxml with pip install lxml

I am using a virtual environment and VS code

Version: 1.52.1 (user setup)  OS: Windows_NT x64 10.0.18363  

My python version is 3.7.4 and I forced a reinstall of the wheel file

https://files.pythonhosted.org/packages/7f/7e/e74f03e6e56184f8af8e33055223cb1d8ecec91a7084ca626b8070b2c67f/lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl

This did not fix the error. I tried using the 32bit wheel file but got an error saying that it was not supported in the platfrom.

Please can someone help? I have googled and the only solutions I could find were the install from wheel and also try the 32bit version.

https://stackoverflow.com/questions/65883570/from-lxml-html-import-fromstring-module-not-found-lxml-installed January 25, 2021 at 07:09PM

没有评论:

发表评论