Py2neo installation (to be continued)

method 1:

The easiest way is to use the pip installation
command directly in the python script directory:

pip install py2neo

insert image description hereAfter the installation is complete, the display is as shown above. But this method installs the latest version of py2neo, and the version I installed is 2021.1.5. The old and new versions of py2neo have different formats. For example, when linking to the neo4j database,
the old version:

from py2neo import *
graph=Graph('http://localhost:7474',username='neo4j',password='123456')

2021.1 version:

from py2neo import *
graph = Graph("http://localhost:7474", auth=("neo4j", "123456"))

And most people on the Internet do not recommend installing the latest version, it is said that it will crash you

uninstall method

pip uninstall py2neo

Method 2:

See online recommendation and install version 4.3.0 online

pip install py2neo==4.3.0 -i https://pypi.douban.com/simple

Enter the command:
insert image description hereThe installation is complete and the display:insert image description here

Method 3:

Download the installation package and install:
download py2neo-3.1.1.zip from the Internet, unzip
cmd, enter the py2neo-3.1.1 folder through cd, and enter the command to install

python setup.py install

Method 4:

Online installation from github
Enter the command
insert image description here
to install an error:
insert image description heredo you want to install git first?

Guess you like

Origin blog.csdn.net/weixin_41824534/article/details/118417711
Recommended