ModuleNotFoundError:没有名为“requests_html”的模块

Phi*_*lll 8 python python-2.7 python-3.x python-requests

我正在尝试在 Mac OS 10.14 中使用模块 requests-html,当尝试使用 pip 安装时,它会出现此错误,而使用 easy_install 时,它会显示错误,表明已经存在此模块。我在Windows上做了测试,命令工作正常,并通过CMD中的直接pip安装它,有人可以帮助我吗?

管道安装 安装 com pip Easy_install安装 installacao com easy_install Windows 10 安装 安装 Windows 10

小智 16

  1. 确保您有 Python 3.6 或更高版本。
  2. 执行pip3 install requests-html

感谢安德森的回答。我还不能发表评论,所以我在这里写了回复。