20

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"

user5289979
  • 201
  • 2
  • 3

1 Answers1

31

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.

hito
  • 408
  • 3
  • 5
  • 2
    for mac using Homebrew, a link to the alias did the trick: "python_interpreter": "/usr/local/bin/python3.6", – diek Feb 01 '18 at 01:53
  • Thanks so much! Was annoying me so much. PS: I had to set mine to "python3.6" because my python3 points to python3.5 for good reasons. – Steampunkery Jul 15 '18 at 04:27
  • While you're at it, you might also want to set "pep8_ignore": "W503" in order to prevent the (incorrect) complaints about PEP8 line breaks before binary operators – Martin CR May 03 '20 at 21:15