Pycharm - Turn off 'Python version 3.5 does not support variable annotations' error message

落花浮王杯 提交于 2019-12-02 04:46:52

问题


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."

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.

Some pictures:

Hope you guys can help and thank you in advance!

Edit: Updated with one more picture of the Project Interpreter settings:


回答1:


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

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.



来源:https://stackoverflow.com/questions/51951256/pycharm-turn-off-python-version-3-5-does-not-support-variable-annotations-er

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!