Winerror 10061 when coding with python (on pycharm) to create a graph

I installed the py2neo (pip install py2neo) and the neo4j driver for python (pip install neo4j-driver)
Then I wrote this simple code on pycharm:

from py2neo import Graph
form py2neo import Node

graph=Graph()
a=Node("Person", name="angel")
graph.create(a)

I received the error: [WinError 10061] No connection could be made because the target machine actively refused it

How can I fix this??
Thanks in advance!!

Do you have a graphdb running?

You should provide an URL and user + password to Graph()

Hello. I am using Neo4j Server version 4.0.4 with the official Bolt neo4j-python-driver 1.7.1.

I was getting the same error, even with proper authentication.
In order to get rid of this error, I had to uncomment the following line in neo4j.conf and re-start the service:

# To accept non-local connections, uncomment this line:
dbms.default_listen_address=0.0.0.0

Not sure why Neo4J server considers the connection from a local driver to be a remote connection.
Hope this helps.