No module named 'requests.packages' - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: No module named 'requests.packages' (/thread-4457.html) |
No module named 'requests.packages' - runnerpaul - Aug-18-2017 When I try to run m python scrip I get this error: Quote:Traceback (most recent call last): It is caused by this line: from requests.packages.urllib3.exceptions import InsecureRequestWarningI have installed both requests and urllib3. Is it possible that Python is looking for this in the wrong place? RE: No module named 'requests.packages' - j.crater - Aug-18-2017 I doubt Python is looking at wrong place, it could be a library/version issue. Here is a thread that resembles your problem a bit. But I don't know the specifics and can't be more particular, sorry. Also if you plan to play with (un)installing pip or different module versions, I recommend to make use of a virtual environment while experimenting. |