ModuleNotFoundError: No module named ‘neo4j‘

python中用neo4j,报错ModuleNotFoundError: No module named ‘neo4j‘

    from . import index_view,index_ERform_view,detail_view
  File "F:\Agriculture_KnowledgeGraph-master\demo\demo\index_ERform_view.py", line 7, in <module>
    from toolkit.pre_load import pre_load_thu,neo_con,predict_labels
  File "F:\Agriculture_KnowledgeGraph-master\demo\toolkit\pre_load.py", line 8, in <module>
    from Model.neo_models import Neo4j
  File "F:\Agriculture_KnowledgeGraph-master\demo\Model\neo_models.py", line 2, in <module>
    import neo4j
ModuleNotFoundError: No module named 'neo4j'

解决办法:
pip install neo4j-driver1.6.2 安装neo4j驱动
pip install py2neo
4.1.0 py2neo使用新版本

你可能感兴趣的:(知识图谱和本体构建学习,python,pycharm)