Pycharm - Turn off 'Python version 3.5 does no

2019-07-22 10:56发布

问题:

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.