0
當我運行的代碼,我運行此代碼,我從這裏的OData例如不工作(Python)的
https://tuomur-python-odata.readthedocs.io/en/latest/#what-is-this
from odata import ODataService
url = 'http://services.odata.org/V4/Northwind/Northwind.svc/'
Service = ODataService(url, reflect_entities=True)
Order = Service.entities['Order']
query = Service.query(Order)
query = query.filter(Order.Name.startswith('Demo'))
query = query.order_by(Order.ShippedDate.desc())
for order in query:
print(order.Name)
了,它說:導入錯誤:沒有模塊命名的OData。我試過用pip安裝odata,什麼都沒有找到。我該如何安裝這個庫?我找不到有關如何安裝它的任何文檔。