How to fix the Anaconda linter showing errors for f-strings in Sublime Text 3?

3k Views Asked by At

The error shown is simply "[E]" so I'm not sure how to exempt this error in the Anaconda preferences.

e.g. the linter error for print(f"Hello, world!") says "[E] invalid syntax"

1

There are 1 best solutions below

3
On

Edit your users preferences of Anaconda and add this:

"python_interpreter": "python3",

I have read somewhere that it was a known bug of python. It's fixed in version 3.6.3, so maybe you have to update your python version also. Mine was 3.6.3, so I don't know if it's necessary to update.