diff options
Diffstat (limited to 'doc/src/install.rst')
-rw-r--r-- | doc/src/install.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/install.rst b/doc/src/install.rst index 868b1b7..2c7bdf2 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -34,14 +34,14 @@ require the build or runtime prerequisites described below. Make sure to use an up-date-date version of :program:`pip` (you can upgrade it using something like ``pip install -U pip``). -You may then import the ``psycopg`` package, as usual: +You may then import the ``psycopg2`` package, as usual: .. code-block:: python - import psycopg + import psycopg2 # Connect to your postgres DB - conn = psycopg.connect("dbname=test user=postgres") + conn = psycopg2.connect("dbname=test user=postgres") # Open a cursor to perform database operations cur = conn.cursor() |