2017-05-14 30 views
3

我用EnterpriseDB的PostgreSQL的安装程序从他们的网站,但是当我说完就跑pgAdmin的(即预装了PostgreSQL的),我得到的是说,一个配置错误:PostgreSQL中无法启动应用程序服务器,服务器线程现有的Windows

An error occurred initializing the application server: 

Failed to launch application server, server thread existing 

然后它会要求我输入一个python路径和一个应用程序路径。对于python路径,我认为它是C:\Users\xxx\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\,这是我安装python的地方。但是我不确定它询问的是哪个应用程序。

9.6.3版本的postgresql。 pgadmin版本是4. windows 10 64bit

回答

0

我遇到了同样的问题,发现'PYTHONPATH'系统变量导致了这个问题。所以我删除了环境变量,它工作正常。幸运的是我没有使用这些变量,因为我的开发环境是远程的。

因此,请尝试从环境变量列表中删除'PYTHONHOME'或'PYTHONPATH'并启动应用程序。

从pgAdmin的代码,

# For unknown reason the Qt runtime does not pass the environment 
# variables (i.e. PYTHONHOME, and PYTHONPATH), to the Python 
# sub-processes, leading to failures executing background processes. 
# 
# This has been observed only on windows. On *nix systems, it is likely 
# picking the system python environment, which is good enough to run 
# the process-executor.** 
相关问题