利用弹性搜索项目。
from elasticsearch import Elasticsearch
es = Elasticsearch(
"https://example.com",
http_auth=("abc", "bcd"),
)
但出现错误:
ValueError: URL must include a scheme , host , and port component (ie https://localhost:9200 )
I am running this on Pycharm CE and have created a Virtual Environment of Python 3.9 .
Should I be using a different version of Python to make this work??
Moreover, I have already tried pip install acryl-datahub[datahub-rest,elasticsearch]==0.8.27.1
but to no avail.