Python for mac or windows: ModuleNotFoundError: No module named ‘lxml’ [How to Solve]

error

Traceback (most recent call last):

File “reptile.py”, line 4, in <module>

from lxml import etree

ModuleNotFoundError: No module named ‘lxml’

jiaxiaobindeMacBook-Pro:exercise jss$ No module named ‘lxml’

-bash: No: command not found

Mac OS python

Under an existing pip

$STATIC_DEPS=true pip install lxml

refer:

https://stackoverflow.com/questions/22674730/importerror-no-module-named-lxml-on-mac

Similar Posts: