1
I solved my own problem.
sudo pip3 install requests --upgrade
Fixed it by upgrading my system’s “requests” package.
1
this question may be getting a bunch of new visitors…
requests.packages has been removed from requests:
https://github.com/kennethreitz/requests/pull/4067
install the vendored libraries separately
pip install urllib3
- [Answered ]-How to access pk in views (Django)
- [Answered ]-Dynamically import url in Django gives 'str' object is not callable
- [Answered ]-Giving positions name in django automatically
- [Answered ]-Include Specific Foreign Keys in DRF Serializer
- [Answered ]-Django Heroku DataError when populating database from script
Source:stackexchange.com