# Creating a Python Driver Instance

**URL:** <https://community.neo4j.com/t/creating-a-python-driver-instance/52891>\
**Category:** Graph Academy\
**Created:** [March 4, 2022, 10:55am UTC](https://community.neo4j.com/t/creating-a-python-driver-instance/52891 "2022-03-04T10:55:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.gennari97](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/a.gennari97/32/22796_2.png) [@a.gennari97](https://community.neo4j.com/u/a.gennari97)\
**Post date:** [March 4, 2022, 10:55am UTC](https://community.neo4j.com/t/creating-a-python-driver-instance/52891/1 "2022-03-04T10:55:45Z")

</div>

I'm following the course [Building Neo4j Applications with Python](https://graphacademy.neo4j.com/courses/app-python/). I am stuck in creating a connection to the Neo4j server at `localhost` on the default port number of `7687` . When I run 'driver.verify\_connectivity()' on Python, I get the 'neo4j.exceptions.ServiceUnavailable: Could not connect to any routing servers' error'. I already tried to change the "neo4j://localhost:7687" port using the instructions in the following link: [How to resolve Python Bolt Driver when executed gives an error "("Failed to establish connection to {!r}".format(address))" - Knowledge Base](https://neo4j.com/developer/kb/resolve-python-bolt-driver-error-connection/)  
But nothing change.  
Is there someone who can help me?

Thanks

---

<div class="post-metadata">

**Author:** ![adam\_cowley](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/adam_cowley/32/145_2.png) [@adam\_cowley](https://community.neo4j.com/u/adam_cowley)\
**Post date:** [March 7, 2022, 2:20pm UTC](https://community.neo4j.com/t/creating-a-python-driver-instance/52891/2 "2022-03-07T14:20:18Z")

</div>

Hey @a.gennari97 !

This error indicates that the driver can't connect to a server at that address. Do you have a neo4j instance running locally? Can you connect to [http://localhost:7474](http://localhost:7474) ? Have you modified neo4j.conf at all?

---

<div class="post-metadata">

**Author:** ![a.gennari97](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/a.gennari97/32/22796_2.png) [@a.gennari97](https://community.neo4j.com/u/a.gennari97)\
**Post date:** [March 10, 2022, 11:21am UTC](https://community.neo4j.com/t/creating-a-python-driver-instance/52891/3 "2022-03-10T11:21:53Z")

</div>

Thanks Adam for helping me.  
Answering your questions:

1. I didn't download any Neo4j program for desktop, I just installed it through the command 'pip install neo4j'
2. I cannot connect to [http://localhost:7474](http://localhost:7474)
3. I didn't modify neo4j.conf because I don't know how to do that.

UPDATE  
I used my credential in the auth and the url provided in the environment variables. I have just a message 'ExperimentalWarning: The configuration may change in the future'. I still cannot connect to [http://localhost:7474](http://localhost:7474)

---

<div class="post-metadata">

**Author:** ![adam\_cowley](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/adam_cowley/32/145_2.png) [@adam\_cowley](https://community.neo4j.com/u/adam_cowley)\
**Post date:** [March 14, 2022, 10:48am UTC](https://community.neo4j.com/t/creating-a-python-driver-instance/52891/4 "2022-03-14T10:48:43Z")

</div>

`pip install neo4j` will only install the dependencies to your project.

You'll need an instance of Neo4j running somewhere. The course creates a Sandbox instance for you and the second lesson gives you the credentials you need. Or you can create another one at [sandbox.neo4j.com](http://sandbox.neo4j.com). If you want to connect to a local instance you'll either need to [download the binaries from neo4j.com or download Neo4j Desktop](https://neo4j.com/download).
