問題
在使用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