gpt4 book ai didi

python - 在 Python 中从 bulbs.neo4jserver 导入图形时出错

转载 作者:太空宇宙 更新时间:2023-11-04 06:05:36 25 4
gpt4 key购买 nike

我正在尝试使用 gremlin 运行 neo4j。我正在关注灯泡文档中的第一个示例,尝试导入 bulbs.neo4jserver .Graph。我可以导入灯泡,它看到 gremlin,但无法使用以下命令导入图形。

>>> import bulbs
>>> bulbs.gremlin
<module 'bulbs.gremlin' from 'C:\Anaconda\lib\site-packages\bulbs\gremlin.pyc'>
>>> from bulbs.neo4jserver import Graph
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: cannot import name Graph

我已经在 gremlin 和 rexster 上下载并运行了 maven。我在 Windows 8 中使用 Python 2.7(Anaconda 安装)工作。

您还需要了解什么?

感谢任何帮助。谢谢。

最佳答案

您使用的是哪个版本的 Bulbs?

$ pip freeze | grep bulbs

你应该能够做到这一点......

$ python
Python 2.7.5 (default, Feb 19 2014, 13:47:28)
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from bulbs.neo4jserver import Graph
>>> g = Graph()

关于python - 在 Python 中从 bulbs.neo4jserver 导入图形时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22309172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com