【py2neo】:ImportError: cannot import name 'NodeMatcher'

問題

在使用py2neo的過程中遇到如下問題:

from py2neo import Graph,  Node, Relationship, NodeMatcher, RelationshipMatcher
ImportError: cannot import name 'NodeMatcher'

解決

‘NodeMatcher’ 是 py2neo V4 版本新增的模塊,需要將舊的py2neo卸載,安裝最新的就可以了。

參考:https://community.neo4j.com/t/importerror-cannot-import-name-nodematcher/3925

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章