I downloaded the latest pyscopg2 assembly and tried to build and install it using the provided instructions. However, I always get an error that "w" is not declared. Does anyone have any experience with this?
This is an error that occurs when the build tools cannot find your Postgresql libraries. This means one of three things:
You do not have postgresql installed on your system. If so, download and create postgres, or download the pre-created psycopg2 binary for OS X.
postgresql , , , , psycopg2. postgres.
, postgres psycopg2, pg_config, . :
pg_config
. pg_config ( /usr/local/pgsql/bin/, postgres , .
/usr/local/pgsql/bin/
. setup.cfg psycopg2 pg_config , pg_config=. , . postgres, , :
setup.cfg
pg_config=
pg_config=/usr/local/pgsql/bin/pg_config
MacPorts Snow Leopard
pg_config=/opt/local/lib/postgresql90/bin/pg_config
psycopg2 virtualenv, , postgreSQL , , , , .
postgres.app Applications.
postgres.app bin PATH:
export PATH = $PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin
. myvenv//
pg_config, . pip , , pg_config .
, , PostgreSQL , , , , - . - . PostgreSQL .
Source: https://habr.com/ru/post/1708048/More articles:Convert int64 to NSData - iphoneOpera handles jQuery's animation method in a very strange way - jqueryI did a loading script in PHP. How to avoid overwriting files? - phpReplacing xml namespace prefixes in SQL Server using XQuery - sqlIf ANSI C ++ does not support multithreading, how will unmanaged C ++ applications be multithreaded? - c ++Support for multiple processes in one application? - c #How to remove close button from MFC title bar - mfcВозвращаемый дескриптор GetPhysicalMonitorsFromHMONITOR всегда имеет значение null - interopiphone офлайн кэшированных приложений dissapear после закрытия в сафари? - safariTransfer header data to e-mails - emailAll Articles