![](/img/trans.png)
[英]Error: command 'gcc' failed with exit status when installing psycopg2
[英]Installing psycopg2 command 'gcc' failed with exit status 1
我正在尝试安装 psycopg2 但pip install psycopg2
导致错误:命令“gcc”失败,退出状态为 1
命令行工具已安装
macOS 10.15
这可能是因为您没有安装 PostgreSQL 开发库。 你有几个选择:
(1) Install the binary with pip install psycopg2-binary
(2) Install PostgreSQL with HomeBrew: brew install postgresql
, then pip install psycopg2
.
您可能只安装二进制文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.