OSX上的psycopg2不安装
关于在OSX上安装Psycopg2的问题有一些问题。
喜欢:
- 库中的
- 错误使用编译器
- 库中的导入错误
- /1736679“>缺少pg_conf
在整理pg_conf之后,仍然与库中的库中陷入困境-lssl
on:
- osx
- m1 mac
- python 3.9
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到此解决方案,能够使其正常工作,而无需使用
Brew。
可悲的是,在安装
。
步骤:
安装libpq:
brew brew install install libpq
添加到路径,因此找到了pg_conf,例如:
install openssl:
brew install openssl
添加到库路径,例如:
pip install psycopg2 == 2.8.5
After finding this solution, was able to make it work without needing the whole of postgres installed, by using
brew
.Sadly zlib or openssl are not explained in the install requirements for psycopg2
Verified with:
Steps:
Install libpq:
brew install libpq
Add to path, so pg_conf is found, eg:
Install openssl:
brew install openssl
Add to library paths, eg:
pip install psycopg2==2.8.5