如何在Windows上安装PostgreSQL 10的Python 3支持

时间:2017-10-16 11:01:14

标签: python windows postgresql

  • 操作系统:Windows 10 64位
  • PostgreSQL版本:10.0-1(安装在带有BigSQL安装程序的Windows上)
  • Python版本:3.6.2

我想为PostgreSQL添加Python 3支持

当我在Postgres控制台中运行CREATE EXTENSION plpython3u;时 我收到以下错误:

ERROR:  could not open extension control file "C:/POSTGR~1/pg10/../pg10/share/postgresql/extension/plpython3u.control": No such file or directory

pgc list返回以下内容:

C:\PostgreSQL>pgc list
Category     | Component         | Version  | ReleaseDt  | Status    | Updates
PostgreSQL     pg10                10.0-1     2017-10-04   Installed
PostgreSQL     pg92                9.2.23-1   2017-08-31
PostgreSQL     pg93                9.3.19-1   2017-08-31
PostgreSQL     pg94                9.4.14-1   2017-08-31
PostgreSQL     pg95                9.5.9-1    2017-08-31
PostgreSQL     pg96                9.6.5-1    2017-08-31
Extensions     oracle_fdw2-pg10    2.0.0-1    2016-09-28
Extensions     pgpartman3-pg10     3.0.2-1    2017-09-08
Extensions     pldebugger96-pg10   9.6.0-2    2017-06-08
Extensions     plprofiler3-pg10    3.2-1      2017-06-08
Extensions     postgis24-pg10      2.4.0-1    2017-10-04   Installed
Extensions     setuser1-pg10       1.4.0-1    2017-08-31
Servers        pgdevops            1.6-3      2017-08-10
Applications   backrest            1.23       2017-09-18
Applications   ora2pg              18.2       2017-09-18
Applications   pgadmin3            1.23.0b    2017-06-08
Applications   pgagent             3.4.1-1    2017-02-23
Applications   pgbadger            9.2        2017-07-31
Frameworks     java8               8u121      2017-02-09
Frameworks     perl5               5.20.3.3   2016-03-14
Frameworks     python2             2.7.12-1   2016-10-20   Installed
Frameworks     tcl86               8.6.4-1    2016-03-11

我从哪里开始?

0 个答案:

没有答案