RequestsHttpConnection was working fine until I had to reinstall Anaconda which is now using Python3.9. Form just trying to import RequestsHttpConnection. I got error below.
from elasticsearch import Elasticsearch, RequestsHttpConnection
Error: cannot import name 'RequestsHttpConnection' from 'elasticsearch' (\Anaconda3\lib\site-packages\elasticsearch_init_.py)
I have elasticsearch-8.0.0 installed and also have requests installed.
Any help is appreciated.
This thing is deprecated in versions 8 and above.
pip uninstall elasticsearch
pip install elasticsearch==7.13.4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With