{"id":20324631,"url":"https://github.com/gh640/python-psycopg2-installation-arm-mac","last_synced_at":"2026-04-20T04:31:18.207Z","repository":{"id":74923718,"uuid":"522398095","full_name":"gh640/python-psycopg2-installation-arm-mac","owner":"gh640","description":"(Japanese) ARM (M1) Mac に Python `psycopg2` をインストールする手順まとめ","archived":false,"fork":false,"pushed_at":"2022-08-08T04:00:19.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T10:25:27.267Z","etag":null,"topics":["postgresql","psycopg2","python3"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gh640.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-08T03:56:58.000Z","updated_at":"2022-08-08T04:01:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d9473d8-c11c-46e5-b874-55d9e98d9b5f","html_url":"https://github.com/gh640/python-psycopg2-installation-arm-mac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gh640/python-psycopg2-installation-arm-mac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fpython-psycopg2-installation-arm-mac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fpython-psycopg2-installation-arm-mac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fpython-psycopg2-installation-arm-mac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fpython-psycopg2-installation-arm-mac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh640","download_url":"https://codeload.github.com/gh640/python-psycopg2-installation-arm-mac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fpython-psycopg2-installation-arm-mac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["postgresql","psycopg2","python3"],"created_at":"2024-11-14T19:36:38.532Z","updated_at":"2026-04-20T04:31:18.189Z","avatar_url":"https://github.com/gh640.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# (Japanese) ARM (M1) Mac に Python `psycopg2` をインストールする手順まとめ\n\nARM (M1) Mac 上の Docker (Docker for Mac) で Python パッケージ `psycopg2` をインストールするための手順のまとめです。\n\n| ベースイメージ | サンプルディレクトリ |\n| --- | --- |\n| `debian:bookworm` | [`debian-bookworm/`](./debian-bookworm/) |\n| `debian:bullseye` | [`debian-bullseye/`](./debian-bullseye/) |\n| `python:3.10` | [`python-3.10/`](./python-3.10/) |\n| `python:3.10-alpine` | [`python-3.10-alpine/`](./python-3.10-alpine/) |\n| `ubuntu:20.04` | [`ubuntu-20.04/`](./ubuntu-20.04/) |\n| `ubuntu:22.04` | [`ubuntu-22.04/`](./ubuntu-22.04/) |\n\n`python:3.10` の場合はそのまま `psycopg2` をインストールするだけで OK です:\n\n```zsh\npython3 -m pip install psycopg2\n```\n\n`python:3.10-alpine` の場合は `apk` で `gcc` `musl-dev` `postgresql-dev` などを入れる必要があります:\n\n```zsh\napk add gcc musl-dev postgresql-dev\n```\n\n`debian` や `ubuntu` の場合はもう少し多くのパッケージを入れる必要があります:\n\n```zsh\napt-get install -y --no-install-recommends \\\n    build-essential \\\n    libpq-dev \\\n    python3 \\\n    python3-dev \\\n    python3-pip\n```\n\n詳細はサブディレクトリの各 `Dockerfile` を参照してください。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fpython-psycopg2-installation-arm-mac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh640%2Fpython-psycopg2-installation-arm-mac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fpython-psycopg2-installation-arm-mac/lists"}