Modulenotfounderror: No module named 'requests_html'

Asked

Viewed 329 times

0

I’m trying to use the module requests-html however in Mac OS 10.14, it presents this error both when trying to install with Pip and with easy_install it presents the error saying that this module already exists. I did a test on windows and the commands worked correctly, and installed it via Pip direct on CMD, someone could help me?

installation with Pip instalacao com pip installation with easy_install instalacao com easy_install installation on Windows 10 instalacao no Windows 10

I installed python 3.7.1 and version of Pip 18.0

  • The ideal would be that you put the texts, with images is terrible to visualize. It seems to me that you are using the original python distribution in your OS, have you tried using any venvs manager? If not, try anaconda (or miniconda), sure your problem will be solved: https://www.anaconda.com/download/#macos

  • I think the best image to have the complete panorama, to enlarge the image just click on it. The anaconda I never used, I used the Brew to install the pipenv and installed with the pipenv, but it seems to me that it adds as if it were the project, however I need the module to be global I will use in several projects, what is not intendi working on windows and not working on Mac OS

  • Macos already comes with Python installed, but it is 2.7. The library you are using specifies that it only works in Python 3.6+. You need to install python3 on the machine and use pip3 install requests-html to use the correct version of Python.

  • It is worth recalling that I installed python 3.7.1 and version of Pip 18.0, these tests were done after installation

  • Again... Swap the image for text and people will immediately identify that it is the python version, do a test, install anaconda (or miniconda if you prefer something "lean" without the scientific packages) create a venv with python above python 3.6 and try to install via python 3.6 conda or even via pip, ready your problem will be solved.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.