两个结果,一个pg_config,尝试在M上安装psycopg2

2024-06-16 13:02:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在Sierra上安装pyscopg2(使用pip)。你知道吗

似乎是一个常见的问题,所以我检查了一些其他的答案。我尝试了here的解决方案。你知道吗

但我还是无法安装。我的错误是

Could not find a version that satisfies the requirement pyscopg2 (from versions: )
No matching distribution found for pyscopg2

当我运行which -a pg_config时,我得到两行代码:

/Applications/Postgres.app/Contents/Versions/9.5/bin//pg_config
/Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config

感觉不对。你知道吗

双pg\u配置是我的问题的根源吗?你知道吗

2\如果是,如何更正?你知道吗


Tags: pip答案configappbinhere错误contents