为什么 Pydev 会给出内置关键字的语法错误?
为什么 Pydev 给我 str() 等内置 python 函数的语法错误?
未定义的变量:str
未定义的变量:False
未定义的变量:浮点数
Why is Pydev giving me syntax errors for built-in python functions like str()?
Undefined variable: str
Undefined variable: False
Undefined variable: float
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 PyDev 配置中删除并重新添加 python 解释器。确保项目正在使用新添加的解释器。
Remove and re-add the python interpreter in the PyDev configuration. Make sure that the project is using the newly added interpreter.
这意味着启动 shell 以获得完成信息时出现问题
对于内置程序(通常是防火墙或网络配置错误 - 请参阅:http://pydev.org/faq.html#PyDevFAQ-WhenIdoacodecompletion%2CPyDevhangs%2CwhatcanIdo%3F 这可能会给您有关如何解决它的提示)。
另外,如果您无法解决问题,请在错误日志中添加详细信息(请参阅:
http://pydev.org/faq.html#how_do_i_report_a_bug 了解有关获取的详细信息
错误日志)。
This means that there's a problem with starting the shell to get completions
for builtins (usually a firewall or a misconfiguration in the network -- see: http://pydev.org/faq.html#PyDevFAQ-WhenIdoacodecompletion%2CPyDevhangs%2CwhatcanIdo%3F which may give you hints on how to solve it).
Also, please add details on your error log if you're unable to solve it (see:
http://pydev.org/faq.html#how_do_i_report_a_bug for details on getting
the error log).
对于那些使用 Aptana 并遇到相同问题的人:
我按照以下说明升级了 Aptana 和 PyDev:
Aptana 上更新 PyDev PyDev 对我来说工作得很好:)
升级后在
For those ppl who are using Aptana and have the same Problem:
I upgraded Aptana and PyDev with the following instructions:
Update PyDev on Aptana
after the upgrade PyDev worked just fine for me :)