0
点赞
收藏
分享

微信扫一扫

Mac 安装psycopg2出错:Error:pg_config executable not found的解决


解决方法

for Mac OSX(没有安装过Postgres.app)


(在你已经安装 ​​Homebrew​​ 的前提下)

brew install postgresql

错误:pkg-config:无效预设`pour_bottle?`条件 #2965

​​https://github.com/Homebrew/discussions/discussions/2965​​

brew update

如果这不起作用 用brew update-reset命令

brew update-reset

    2. 找到相应的路径

我的是:/usr/local/Cellar/postgresql/14.2_1/bin 
具体的“14.2_1”根据自己的版本号来。 
这里我添加下面的内容到我的 .bash_profile 文件

export PATH=/usr/local/Cellar/postgresql/14.2_1/bin:$PATH


pip install psycopg2


举报

相关推荐

ubuntu安装Gnuradio出的错

0 条评论