示例页面

mac 安装psycopg2解决方法

通过pip install psycopg2来安装这个包一直失败,在网上找了其他的安装方式,最终选择了以下方式来达到目的:
pip install psycopg2-binary

如遇安装过程失败,请看下网络速度是否正常。

image

在jupyter中测试下可以正常调用

image

要解决pip install psycopg2安装过程中的问题,可参考:

「1」https://blog.csdn.net/weixin_57976803/article/details/125673654
「2」https://blog.csdn.net/wangdongxuan0209/article/details/118464103

通过pip install psycopg2-binary,参考官方文档里面也有对两种安装方式对比说明:
image

posted @ 2022-11-01 14:09  没有风格的Wang  阅读(492)  评论(0编辑  收藏  举报