1.6.2 sounds old... try latest version. I've confirmed to work with 1.7.1.
And, I afraid that you may mix Python2 and Python3...
Try python3 -m pip install neo4j --user and install latest bolt driver instead of running pip itself.
Then, try again with python3. Neo4j driver doesn't support python2. GitHub - neo4j/neo4j-python-driver: Neo4j Bolt driver for Python
I seem that you cannot reach internet. Ask your network admin.
You may download neo4j package and corresponding packages by yourself ( neo4j · PyPI ), but I don't recommend...
I have downloaded the neo4j-1.7.2.tar.gz and i did tar -xf neo4j-1.7.2.tar.gz. I can see neo4j-1.7.2 package.
But when i run
root@ip-10-206-162-180:/mnt/xvdb/neo4j-1.7.2/neo4j# python3 -m pip install neo4j --user
Could not import runpy module
Traceback (most recent call last):
File "/root/anaconda3/lib/python3.6/runpy.py", line 14, in
import importlib.machinery # importlib first so we can test #15386 via -m
File "/root/anaconda3/lib/python3.6/importlib/init.py", line 57, in
import types
File "/mnt/xvdb/neo4j-1.7.2/neo4j/types/init.py", line 29, in
from neo4j import Record
ModuleNotFoundError: No module named 'neo4j'
Before running your script, install neo4j driver like below.
[u190318@localhost ~]$ which python3
~/anaconda3/bin/python3
[u190318@localhost ~]$ ls
Anaconda3-2018.12-Linux-x86_64.sh anaconda3 neo4j-1.7.2 neo4j-1.7.2.tar.gz
[u190318@localhost ~]$ cd neo4j-1.7.2/
[u190318@localhost neo4j-1.7.2]$ python3 setup.py install
(snip)
[u190318@localhost neo4j-1.7.2]$ python3
Python 3.7.1 (default, Dec 14 2018, 19:28:38)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from neo4j import GraphDatabase
>>>
[u190318@localhost neo4j-1.7.2]$
I'm happy that you've succeed to install neo4j driver.
In my experience, you don't need to restart kernel, but just run cell including driver import.
But just in case, you had better to restart kernel, if you can..
This is out of topic from the above question. I have apoc plugins - apoc-3.5.0.1-all.jar
in neo4j DB. But when i run below Cypher query getting below error
Neo.ClientError.Procedure.ProcedureNotFound: There is no procedure with the name apoc.path.expandConfig registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.