OSX上的psycopg2:我也必须安装PostgreSQL吗? [英] psycopg2 on OSX: do I have to install PostgreSQL too?

查看:107
本文介绍了OSX上的psycopg2:我也必须安装PostgreSQL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从OS/X中的Python访问在远程计算机上运行的postgreSQL数据库.我也必须在Mac上安装postgres吗?否则psycopg2会自己工作.

I want to access a postgreSQL database that's running on a remote machine, from Python in OS/X. Do I have to install postgres on the mac as well? Or will psycopg2 work on its own.

是否有任何关于psycopg2 for os/x的良好安装指南的提示?

Any hints for a good installation guide for psycopg2 for os/x?

推荐答案

macports告诉我,psycopg2程序包依赖于postgres客户端和库(而不是db服务器).如果您成功安装了psycopg,那么您应该一切顺利.

macports tells me that the psycopg2 package has a dependency on the postgres client and libraries (but not the db server). If you successfully installed psycopg, then you should be good to go.

如果尚未安装,请考虑使用macports或fink为您处理依赖项解析.在大多数情况下,这会使事情变得更容易(有时会引发问题).

If you haven't installed yet, consider using macports or fink to deal with dependency resolution for you. In most cases, this will make things easier (occasionally build problems erupt).

这篇关于OSX上的psycopg2:我也必须安装PostgreSQL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆