Skip to content Skip to sidebar Skip to footer

Upgrading From Python 3.5.1 To 3.6: Syntaxerror: 'yield' Inside Async Function

I am on Windows 8.1 and wanted to upgrade from Python 3.5.1 to Python 3.6. I currently use Anaconda3 and have virtual environments for python 2.7 and python 3.5. I used the followi

Solution 1:

It seems like the python executable you are using is old, even though the library paths point to python3.6.

Add C:\Users\thisuser\AppData\Local\Continuum\Anaconda3\bin to the beginning of your PATH variable. Or alternatively, run python from C:\Users\thisuser\AppData\Local\Continuum\Anaconda3\bin\python.

Solution 2:

(Windows 10) I had same issue but realized that the "Project Interpreter" on my Pycharm was still set to 3.5 while PYTHONPATH was set to 3.6 executable. Changed "Project Interpreter" to 3.6 and issue solved

Post a Comment for "Upgrading From Python 3.5.1 To 3.6: Syntaxerror: 'yield' Inside Async Function"