[英]Unable to install psycopg2 on mac using Interactive installer by EDB
Problem Statement问题陈述
Hello guys, I am trying to install psycopg2 to integrate PostGreSQL 14 with Python-Django, on my Mac OS.大家好,我正在尝试在我的 Mac OS 上安装 psycopg2 以将 PostGreSQL 14 与 Python-Django 集成。
I installed PostGreSQL 14 via EBD found on this link .我通过此链接上的 EBD 安装了 PostGreSQL 14 。
When I run on my terminal, the bellow command:当我在终端上运行时,下面的命令:
pip3 install psycopg2
I get an error Error: pg_config executable not found.
我收到错误
Error: pg_config executable not found.
Solutions tried without success尝试的解决方案没有成功
It seems to be a common and well-documented error on the internet.这似乎是互联网上常见且有据可查的错误。 None of the solutions below have worked for me so far:
到目前为止,以下解决方案都没有对我有用:
1 pip3 install psycopg2-binary
1
pip3 install psycopg2-binary
Error: missing pg_config
2 which pg_config
2
which pg_config
Error: pg_config not found
3 pip3 install --upgrade wheel
then 'pip3 install psycopg2-binary' 3
pip3 install --upgrade wheel
然后'pip3 install psycopg2-binary'
Error: pg_config executable not found.
4 brew install postgresql
4
brew install postgresql
Error: zsh: command not found: brew
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.