5/28/2023 0 Comments Install psycopg2 mac![]() Well, what is pyscopg2? It allows you to write Python code to interact with PostgreSQL databases and perform operations such as querying, inserting, updating, and deleting data. By using pg_config to retrieve installation details, you can ensure that the extensions are compiled against the correct version of PostgreSQL and using the correct header files and libraries. Pg_config is a command line utility usually included when you install PostgresSQL and is needed for Postgres extensions like pyscopg2. ![]() Either I'm missing the pg_config file or the path to it is mixed up.ĭown the rabbit hole I went. Interesting error, right? One would assume it's a fairly simple fix considering the error has quite plainly told me what the problem is. Note: This error originates from a subprocess, and is likely not a problem with pip. If you prefer to avoid building psycopg2 from source, please install the PyPIįor further information please check the 'doc/src/install.rst' file (also at Or with the pg_config option in 'setup.cfg'. Python setup.py build_ext -pg-config /path/to/pg_config build. ![]() Please add the directoryĬontaining pg_config to the $PATH or specify the full executable path with the Pg_config is required to build psycopg2 from source. Writing manifest file '/private/var/folders/rw/dtl9c56x0r5dm6l4qbxmgm9w0000gn/T/pip-pip-egg-info-_pa_g8u5/psycopg2.egg-info/SOURCES.txt' Writing top-level names to /private/var/folders/rw/dtl9c56x0r5dm6l4qbxmgm9w0000gn/T/pip-pip-egg-info-_pa_g8u5/psycopg2.egg-info/top_level.txt Writing dependency_links to /private/var/folders/rw/dtl9c56x0r5dm6l4qbxmgm9w0000gn/T/pip-pip-egg-info-_pa_g8u5/psycopg2.egg-info/dependency_links.txt Writing /private/var/folders/rw/dtl9c56x0r5dm6l4qbxmgm9w0000gn/T/pip-pip-egg-info-_pa_g8u5/psycopg2.egg-info/PKG-INFO Users/gracemckenna/Code/test_postgres/venv/lib/python3.10/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.Ĭreating /private/var/folders/rw/dtl9c56x0r5dm6l4qbxmgm9w0000gn/T/pip-pip-egg-info-_pa_g8u5/psycopg2.egg-info × python setup.py egg_info did not run successfully.
0 Comments
Leave a Reply. |