为什么 Pydev 会给出内置关键字的语法错误?

发布于 2024-12-15 11:12:32 字数 128 浏览 5 评论 0原文

为什么 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

戏舞 2024-12-22 11:12:32

在 PyDev 配置中删除并重新添加 python 解释器。确保项目正在使用新添加的解释器。

Remove and re-add the python interpreter in the PyDev configuration. Make sure that the project is using the newly added interpreter.

关于从前 2024-12-22 11:12:32

这意味着启动 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).

就此别过 2024-12-22 11:12:32

对于那些使用 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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文