1) install
java-6-openjdk/jre
sudo
easy_install neo4j-embedded
2) set path to JVM:
export JAVA_HOME=/usr/lib/jvm/
or set path in jpype (/usr/lib/python2.7/dist- packages/jpype/_linux.py):
in string 53: "java_home = os.getenv('JAVA_HOME')" => "java_home = '/usr/lib/jvm/java-6- openjdk/jre/'"
3) in file /usr/local/lib/python2.7/dist- packages/neo4j_embedded-1.6- py2.7.egg/neo4j/_backend.py
string 132 correct follow:
| ||
133 |
| |
134 |
| |
132 | 135 |
|
133 |
| |
136 |
|
4) try import neo4j:
>>import neo4j
>>
5) create DB in Python:
from neo4j import GraphDatabase
# Create db
db = GraphDatabase('/data/neo4j_DB')
...
print('all ok')
# Shut down db
db.shutdown()
Комментариев нет:
Отправить комментарий