0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac psycopg2 インストール 

Last updated at Posted at 2021-03-31

Mac
Python 3.9.2
psql (PostgreSQL) 13.2

ターミナル
$ brew install openssl

opssl をインストールする。


ターミナル
$ export LDFLAGS="-L/usr/local/opt/openssl/lib"
$ export CPPFLAGS="-I/usr/local/opt/openssl/include"

環境変数 LDFLAGS , CPPFLAGS の2つを設定する。


ターミナル
$ pip install psycopg2

再度インストール。


[参考]https://dev.classmethod.jp/articles/mac-psycopg2-install/

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?