简体   繁体   English

安装 psycopg2 命令“gcc”失败,退出状态为 1

[英]Installing psycopg2 command 'gcc' failed with exit status 1

I'm trying to install psycopg2 but pip install psycopg2 brings to error: command 'gcc' failed with exit status 1我正在尝试安装 psycopg2 但pip install psycopg2导致错误:命令“gcc”失败,退出状态为 1

Command line tools are installed命令行工具已安装

MacOS 10.15 macOS 10.15

This is likely because you don't have the PostgreSQL devel library installed.这可能是因为您没有安装 PostgreSQL 开发库。 You have a few options:你有几个选择:

(1) Install the binary with pip install psycopg2-binary (2) Install PostgreSQL with HomeBrew: brew install postgresql , then pip install psycopg2 . (1) Install the binary with pip install psycopg2-binary (2) Install PostgreSQL with HomeBrew: brew install postgresql , then pip install psycopg2 .

You can probably just install the binary.您可能只安装二进制文件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:安装 psycopg2 时命令“gcc”失败并显示退出状态 - Error: command 'gcc' failed with exit status when installing psycopg2 安装 psycopg2 完全失败。 巨大的错误消息(例如错误:命令 'gcc' failed with exit status 1) - Installing psycopg2 fails completely. Huge error message (such as error: command 'gcc' failed with exit status 1) Python 3.7 psycopg2 - Xcode 错误“错误:命令 'gcc' 失败,退出状态为 1” - Python 3.7 psycopg2 - Xcode Error “error: command 'gcc' failed with exit status 1” 错误:命令“ gcc”失败,退出状态为1,正在安装pymix - error: command 'gcc' failed with exit status 1, installing pymix 错误:命令'gcc'失败,退出状态1安装Fatiando(Python包) - error: command 'gcc' failed with exit status 1 installing Fatiando (Python Package) 错误:安装 eventlet 时命令“gcc”失败,退出状态为 1 - error: command 'gcc' failed with exit status 1 while installing eventlet 安装超集:错误:命令“gcc”失败,退出状态为 1 - Installing superset: error: command 'gcc' failed with exit status 1 错误:在RHEL上安装pycrypto时,命令'gcc'失败,退出状态为1 - error: command 'gcc' failed with exit status 1 while installing pycrypto on RHEL 命令'gcc'在安装scrapy时失败,退出状态1错误 - command 'gcc' failed with exit status 1 error while installing scrapy 安装Reportlab(错误:命令'gcc'失败,退出状态为1) - installing Reportlab (error: command 'gcc' failed with exit status 1 )
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM