我在 Windows 下安装 neo4j.py 时遇到问题

发布于 2024-11-16 00:53:51 字数 1110 浏览 2 评论 0原文

在安装过程中,我遇到以下错误:

File "C:\JPYTHONNEO\pom.py", line 56, in __getitem__
raise KeyError(path)
KeyError: 'project.artifactId'

如果我向 pom.py 添加两行代码:

def __getitem__(self, path):
    element = self.tree.findtext(self.__path(path))
    if element is None:#added  
        element = self.tree.findtext(self.__path('dependencies'))#added 
    if element is None:
        element = self.tree.findtext(self.__path('properties.' + path))
    if element is None and self.parent is not None:
        element = self.parent[path]
    if element is None:
        raise KeyError(path)
    return self.pattern.sub(lambda match:self[match.groupdict()['var']], element)

尽管我安装了 python 2.7,但我收到以下错误。

EnvironmentError: Neo4j.py installation requirements unfulfilled.

 * For Jython, the source installation requires Jython version 2.5.
 * For Jython 2.2 you can still install pre-packaged binary distributions.
   These can be obtained at http://components.neo4j.org/neo4j.py/
 * For Python, the source installation requires Python 2.5.

During installation I have following error:

File "C:\JPYTHONNEO\pom.py", line 56, in __getitem__
raise KeyError(path)
KeyError: 'project.artifactId'

if I add two lines of code to pom.py:

def __getitem__(self, path):
    element = self.tree.findtext(self.__path(path))
    if element is None:#added  
        element = self.tree.findtext(self.__path('dependencies'))#added 
    if element is None:
        element = self.tree.findtext(self.__path('properties.' + path))
    if element is None and self.parent is not None:
        element = self.parent[path]
    if element is None:
        raise KeyError(path)
    return self.pattern.sub(lambda match:self[match.groupdict()['var']], element)

I get following error despite the fact that I ve python 2.7 installed.

EnvironmentError: Neo4j.py installation requirements unfulfilled.

 * For Jython, the source installation requires Jython version 2.5.
 * For Jython 2.2 you can still install pre-packaged binary distributions.
   These can be obtained at http://components.neo4j.org/neo4j.py/
 * For Python, the source installation requires Python 2.5.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文