On Thu, Apr 27, 2017 at 5:46 PM, diek <d...@bellaliant.net> wrote: > Good Day, > I have searched and read some posts on reddit and stack but I cannot get > flake8 to use Python3. I looked at your docs, but I cannot find it. I am > using a Python3 virtualenv, and I pip installed Flake8. > Flake8 is installed: > _env/lib/python3.6/site-packages/flake8/utils.py > Running version: > 3.3.0 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.5.0) CPython 2.7.13 on > Darwin
This tells me that the version of Flake8 that is being run is not the one in your virtual environment. > It is showing errors for items that are valid syntax. I require both Python > 2 and 3 on my computer. If python points to the virtualenv python, try using the documented method of python -m flake8 Cheers! _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality