1. mp_api.core.client.MPRestError接口调用错误描述
mp_api.core.client.MPRestError: REST query returned with error status code 403 on URL https://api.materialsproject.org/summary/?criteria=task_id&all_fields=True&limit=1000 with message:
Response {"error": "You are using deprecated API endpoints. Please read our documentation (https://docs.materialsproject.org) and upgrade to the latest version of the mp-api client (https://pypi.org/project/mp-api/).", "version": "blocked"}
2. 解决方式
更新 mp-api==0.37.5
和 pymatgen==2023.10.11
pip install mp-api==0.37.5
pip install pymatgen==2023.10.11