Ubuntu安装psycopg2失败:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

问题:Ubuntu安装psycopg2失败报错

1
2
3
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psycopg2

解决方法:

安装 python-dev, python3-dev, libpq-dev :

1
sudo apt-get install python-dev  python3-dev  libpq-dev 

Ubuntu安装psycopg2失败:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

https://www.junle.org/Ubuntu安装psycopg2失败:error-command-x86-64-linux-gnu-gcc-failed-with-exit-status-1/

作者

Junle

发布于

2020-06-03

更新于

2024-03-22

许可协议

评论