Mac installation psycopg2 error

You can download and install psycopg2 in python3.8 on Mac using the following steps:

  1. Open a terminal and run the following command:
pip3 install psycopg2-binary
  1. The above command will install the latest version of psycopg2-binary which is a precompiled version of psycopg2 optimized for your platform.
  2. To verify the installation, open a Python interpreter in a terminal and run the following command:
import psycopg2
print(psycopg2.__version__)
  1. If the installation was successful, you should see the version number of psycopg2 installed.

Guess you like

Origin blog.csdn.net/iuv_li/article/details/129004575