mpi_api 報錯 mp_api.client.core.client.MPRestError
mp_api.client.core.client.MPRestError: REST query returned with error status code 404 on URL https://api.materialsproject.org/summary/?_fields=structure&material_ids=mp-149&_limit=1000 with message:
Response {"message":"no Route matched with those values"}
出現(xiàn)這個問題主要是因?yàn)?mp_api.client 版本太低,可以使用命令:
查看版本:

需要升級到?0.33.1 。
使用命令:
這樣就可以成功運(yùn)行了。
具體參考:
標(biāo)簽: