Jan-13-2020, 05:09 AM
I have a very simple script that saves me a lot of time scraping a few URLs on occasion. I ran the code just fine 2 weeks ago, and now when I go to run it, I get the error
Python version 3.7.3
pip version 19.3.1
macOS 10.15.2
Traceback (most recent call last): File "addevents.py", line 11, in <module> import requests ModuleNotFoundError: No module named 'requests'so, just for fun I ran
pip3.7 install requestsand I get the output
Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (2.22.0) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests) (1.25.7) Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests) (2.8) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests) (2019.9.11)and sure enough when I run
help("modules")I don't see "requests" anywhere. No clue what to do here. And I'm about to go insane. Please send help.
Python version 3.7.3
pip version 19.3.1
macOS 10.15.2