please find below the solution if you are using python34(3.4) or above.
check your python version: goto command prompt and type "python" hit enter and the first line you get is your python version.
goto path "C:\Users\user-name\AppData\Roaming\Sublime Text 3\Packages\Anaconda\anaconda_lib\linting\pyflakes"
Open file named checker.py
search for word LOOP_TYPES in the file(probably in first 80 lines) which is looks like as below if its latest version of anaconda.
if PY34:
LOOP_TYPES = (ast.While, ast.For)
else:
LOOP_TYPES = (ast.While, ast.For, ast.AsyncFor)
replace above 4 lines with the below shown 4 lines.
if PY2 or PY32 or PY33:
LOOP_TYPES = (ast.While, ast.For, ast.AsyncFor)
else:
LOOP_TYPES = (ast.While, ast.For)
restart your sublime.
联系客服