plpythonu.control Postgres 9.4.0 缺失

plpythonu.control Missing on Postgres 9.4.0

我 运行 我的 Mac 上的 Postgres 9.4.0。

我在 运行 我的迁移时不断收到此错误:

PG::UndefinedFile: 错误:无法打开扩展控制文件“/usr/local/Cellar/postgresql/9.4.0/share/postgresql/extension/plpythonu.control”:没有这样的文件或目录

我检查过并且(当然)该目录中缺少该文件。

我试过:

$ psql 
=# \c abc_dev;
=# CREATE EXTENSION plpythonu;
=# ERROR:  could not open extension control file "/usr/local/Cellar/postgresql/9.4.0/share/postgresql/extension/plpythonu.control": No such file or directory

如何将 plpythonu.control 文件放入 Mac 的扩展部分,以便将其添加到 abc_dev 数据库?在此先感谢您的任何建议。

编辑:标准 brew 不包括 plpython。您可以使用以下方法使其工作: brew reinstall postgresql --build-from-source --with-python