Pycharm - 关闭“Python 3.5 版不支持变量注释"错误消息 [英] Pycharm - Turn off 'Python version 3.5 does not support variable annotations' error message

查看:53
本文介绍了Pycharm - 关闭“Python 3.5 版不支持变量注释"错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 Pycharm 更新到最新版本,但一直遇到此错误消息的问题.基本上,我无法关闭显示Python 3.5 版不支持变量注释"的错误消息.

I just updated Pycharm to the latest version and I've been having trouble with this error message. Basically, I can't turn off the error message that says "Python version 3.5 does not support variable annotations."

我的默认解释器和项目解释器是 Python 3.6,我什至没有在 Pycharm 中添加 Python 3.5,因此我们将不胜感激.

My default and project interpreter is Python 3.6, and I don't even have Python 3.5 added in Pycharm, so any help with this would be much appreciated.

部分图片:

希望你们能帮忙,提前谢谢你们!

Hope you guys can help and thank you in advance!

更新了项目解释器设置的另一张图片:

Updated with one more picture of the Project Interpreter settings:

推荐答案

感谢 @user2235698,我通过删除我的项目解释器并将其重新添加到 Pycharm 解决了该问题.

Thanks to @user2235698, I fixed the issue by removing my project interpreter and re-adding it to Pycharm.

Ubuntu 进行了更新,将我的 Python 3 版本从 3.6 更改为 3.5,但 Pycharm 没有意识到它已更改.将解释器目录从/usr/bin/python3 更新到/usr/bin/python3.6 修复了一些问题.

Ubuntu did an update which changed my Python 3 version from 3.6 to 3.5, but Pycharm didn't realize it was changed. Updating the interpreter directory from /usr/bin/python3 to /usr/bin/python3.6 fixed things.

再次感谢大家!将此标记为已解决.

Thanks again everyone! Marking this as solved.

这篇关于Pycharm - 关闭“Python 3.5 版不支持变量注释"错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆