我在Mac上的Eclipse中安装了PyDev。每当我编写代码时,它只有一些建议,而且似乎不完整。例如,每当我键入“ r”时,它仅建议“ raise()”和“ return()”。但是,我希望它建议的所有其他功能仍在运行时执行。
这是错误:
连接到python进程时出错。-不再处于活动状态的进程(输出= 0)-ProcessInfo:
执行:/ usr / bin / python -u / Users // Downloads / eclipse 2 / plugins / org.python.pydev_2.6.0.2012062818 /pysrc/pycompletionserver.py 52958 52957
环境:APP_ICON_2099 = .. / Resources / Eclipse.icns Apple_PubSub_Socket_Render = / tmp / launch-4HHiSZ / Render COMMAND_MODE = unix2003 DISPLAY = / tmp / launch-hu6CLm / org.x:0 HOME = / Users / JAVA_STARTED_ON_FIRST_THREAD_2099 = 1 = / usr / bin:/ bin:/ usr / sbin:/ sbin PYTHONPATH = /用户// Downloads / ecli pse 2 / plugins / org.python.pydev_2.6.0.2012062818 / pysrc / pydev_sitecustomize:/ System / Library / Frameworks /蟒蛇。framework / Versions / 2.6 / lib / python26.zip:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6 / plat-darwin:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6 / plat-mac:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6 / plat-mac / lib- scriptpackages:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6 / lib-tk:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6 / lib-old:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2.6 / lib-dynload:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python / PyObjC:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python / wx-2.8- mac-unicode SHELL = / bin / bash SSH_AUTH_SOCK = / tmp / launch-phfnZP / Listeners TMPDIR = / var / folders / Kr / Krv2afoAFMa79AvxnI73IE ++ + TI / -Tmp -/ USER = __CF_USER_TEXT_ENCODING = 0x1F5:0:0 com.apple.java.jvmTask = JNI / System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python / PyObjC:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python / wx-2.8- mac-unicode SHELL = / bin / bash SSH_AUTH_SOCK = / tmp / launch-phfnZP / Listeners TMPDIR = / var / folders / Kr / Krv2afoAFMa79AvxnI73IE ++ + TI / -Tmp -/ USER = __CF_USER_TEXT_ENCODING = 0x1F5:0:0 com.apple.java.jvmTask = JNI / System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python / PyObjC:/ System / Library / Frameworks / Python。framework / Versions / 2.6 / Extras / lib / python / wx-2.8- mac-unicode SHELL = / bin / bash SSH_AUTH_SOCK = / tmp / launch-phfnZP / Listeners TMPDIR = / var / folders / Kr / Krv2afoAFMa79AvxnI73IE ++ + TI / -Tmp -/ USER = __CF_USER_TEXT_ENCODING = 0x1F5:0:0 com.apple.java.jvmTask = JNI
工作目录:/ Users // Downloads / eclipse 2 / plugins / org.python.pydev_2.6.0.2012062818 / pysrc
操作系统:Mac OS X
标准输出:pycompletionserver将启动pycompletionserver创建套接字pycompletionserver收到错误:追溯(最近一次调用最近):文件“ / Users // Downloads / eclipse 2 / plugins / org.python.pydev_2.6.0.2012062818 /pysrc/pycompletionserver.py”行s.bind((HOST,self.thisPort))文件“”,行261,在绑定gaierror中,行1:[Errno 8]提供的节点名或服务名,或者未知
错误输出:连接参数时出错:主机:本地主机端口:52957线程Thread-1中的异常:回溯(最近一次调用为last):文件“ / System / Library / Frameworks / Python。framework / Versions / 2.6 / lib / python2。 6 / threading.py”,__ bootstrap_inner self.run()文件中的第522行,第261行,“ / Users // Downloads / eclipse 2 / plugins / org.python.pydev_2.6.0.2012062818 /pysrc/pycompletionserver.py”,在运行s.bind((HOST,self.thisPort))文件“”中,行1,在绑定gaierror中:[Errno 8]提供的节点名或服务名,或者未知
我解决了我的问题(几乎相同):
我有
127.0.0.1本地主机
:: 1本地主机
写在我的“主机”文件中:
怎么解决:
打开终端 须藤nano / etc / hosts 输入密码 找到两个条目并用“#”将它们注释掉,例如: #127.0.0.1 localhost #::1 localhost Ctrl + X Y(在欧洲键盘Z = Y上) 输入 =>解决
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。