使用PyDev /错误初始化控制台

时间:2015-07-20 00:46:57

标签: python eclipse pydev

在Eclipse中使用PyDev控制台,最初工作正常。 Python代码可以在控制台内部运行。 当我开始在PyDev模块中编写文件时,我尝试执行runfile()但是已经用python初始化的控制台返回了这个错误:

Failed to parse server's response: Expected methodResponse element, got head127.0.0.1 - - [18/Jul/2015 13:55:14] code 400, message Bad HTTP/0.9 request type ('POST')

之后,我关闭了控制台并重新启动了Eclipse。现在,当我尝试甚至初始化pyDev控制台时,它返回:

Error initializing console.

Unexpected error connecting to console.

Failed to recive suitable Hello response from pydevconsole. Last msg received: Failed to parse server's response: Expected methodResponse element, got head

使用的命令行:

C:\ Users \ axelrod \ AppData \ Local \ Continuum \ Anaconda \ python.exe -u C:\ Users \ axelrod \ Applications \ eclipse \ plugins \ org.python.pydev_4.2.0.201507041133 \ pysrc \ pydevconsole。 py 50824 50825 50824 50825

环境:

PATH = C:/ Program Files / Java / jre1.8.0_51 / bin / server; C:/ Program Files / Java / jre1.8.0_51 / bin; C:/ Program Files / Java / jre1.8.0_51 / lib / amd64; C:\ ProgramData \ Oracle \ Java \ javapath; C:\ Program Files \ Dell \ DW WLAN Card ;; C:\ Windows \ system32; C:\ Windows; C:\ Windows \ System32 \ Wbem; C :\ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files(x86)\ QuickTime \ QTSystem \; C:\ Program Files \ CREDANT \ Shield v7.3 \; C:\ Users \ axelrod \ AppData \本地\连续\阿纳康达; C:\用户\ Axelrod的\应用程序数据\本地\连续\阿纳康达\脚本; C:\用户\ Axelrod的\应用程序\蚀;

LOCALAPPDATA = C:\ Users \用户Axelrod的\应用程序数据\本地

PROCESSOR_LEVEL = 6

SYSTEMDRIVE = C:

FP_NO_HOST_CHECK = NO

COMMONPROGRAMFILES(X86)= C:\ Program Files(x86)\ Common Files

USERDOMAIN = CHAPMANEDU

LOGONSERVER = \ ORDC01

LDMS_LOCAL_DIR = C:\ Program Files(x86)\ LANDesk \ LDClient \ Data

提示= $ P $ G

SESSIONNAME =控制台

ALLUSERSPROFILE = C:\ ProgramData

PROGRAMFILES(X86)= C:\ Program Files(x86)

PROCESSOR_ARCHITECTURE = AMD64

ASL.LOG =目标=文件

DEFLOGDIR = C:\ ProgramData \的McAfee \ DesktopProtection

WINDOWS_TRACING_FLAGS = 3

PROGRAMFILES = C:\ Program Files

APPDATA = C:\用户\ Axelrod的\应用程序数据\漫游

PSMODULEPATH = C:\ Windows \ System32下\ WindowsPowerShell \ V1.0 \模块\

PROGRAMW6432 = C:\ Program Files

PROGRAMDATA = C:\ ProgramData

SYSTEMROOT = C:\ Windows下

USERNAME = Axelrod的

VSEDEFLOGDIR = C:\ ProgramData \的McAfee \ DesktopProtection

USERDNSDOMAIN = CHAPMAN.EDU

PYTHONPATH = C:\用户\ Axelrod的\应用程序\蚀\插件\ org.python.pydev_4.2.0.201507041133 \ pysrc \ pydev_sitecustomize; C:\用户\ Axelrod的\应用程序数据\本地\连续\阿纳康达\的DLL; C ^ :\用户\ Axelrod的\应用程序数据\本地\连续\阿纳康达\ lib中; C:\用户\ Axelrod的\应用程序数据\本地\连续\阿纳康达\ lib中\ lib中-TK; C:\用户\ Axelrod的\应用程序数据\本地\连续\蟒蛇; C:\用户\阿克塞尔罗德\应用程序数据\本地\连续\蟒蛇\ LIB \站点包; C:\用户\阿克塞尔罗德\应用程序数据\本地\连续\蟒蛇\ LIB \站点包\狮身人面像,1.3.1- py2.7.egg; C:\用户\阿克塞尔罗德\应用程序数据\本地\连续\蟒蛇\ LIB \站点包\加密-0.9.1-py2.7共赢-amd64.egg; C:\用户\阿克塞尔罗德\应用程序数据\本地\连续\蟒蛇\ LIB \站点包\ WIN32; C:\用户\阿克塞尔罗德\应用程序数据\本地\连续\蟒蛇\ LIB \站点包\ WIN32 \ lib中; C:\用户\阿克塞尔罗德\应用程序数据\当地\连续\蟒蛇\ LIB \站点包\ PythonWin的; C:\用户\阿克塞尔罗德\应用程序数据\本地\连续\蟒蛇\ LIB \站点包\ setuptools的-17.1.1-py2.7.egg; C:\用户\ axelrod \ Desktop \ ECLIPSE WORKSPACE \ IntroPythonDataAnalysis \ SRC

PATHEXT = .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH; .MSC

OS = Windows_NT

COMPUTERNAME = ENG-AXELROD5520

COMMONPROGRAMW6432 = C:\ Program Files \ Common Files

COMMONPROGRAMFILES = C:\ Program Files \ Common Files

COMSPEC = C:\ Windows \ System32下\ cmd.exe的

PROCESSOR_REVISION = 2a07

CLASSPATH =。; C:\ Program Files(x86)\ QuickTime \ QTSystem \ QTJava.zip

WINDIR = C:\ Windows下

HOMEPATH = \用户\ Axelrod的

TEMP = C:\ Users \用户Axelrod的\应用程序数据\本地\温度

HOMEDRIVE = C:

PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 42 Stepping 7,GenuineIntel

USERPROFILE = C:\用户\ Axelrod的

WINDOWS_TRACING_LOGFILE = C:\ BVTBin \测试\ installpackage \ csilogfile.log

TMP = C:\用户\ Axelrod的\应用程序数据\本地\温度

PUBLIC = C:\用户\公共

NUMBER_OF_PROCESSORS = 4

QTJAVA = C:\ Program Files(x86)\ QuickTime \ QTSystem \ QTJava.zip

PYTHONIOENCODING = UTF-8

PYDEV_UMD_ENABLED =真

PYDEV_UMD_NAMELIST = guidata,guiqwt

PYDEV_UMD_VERBOSE =真

1 个答案:

答案 0 :(得分:0)

一种解决方案是使用带有python集成的Liclipse,您所要做的就是配置解释器。或者检查天气是否正确配置了解释器。配置可在Window-> Preferences-> Pydev-> Intrepreters中找到。或者另一件可能错误的事情是pydev模块可能适用于某种类型的日食。我个人使用LiClipse很棒。