This article explains the error visual studio
throws when it's trying to compile a project that uses Python 3.6 but the debugger is using Python 3.4. The error says, "install python 3.6 or change the virtual environment
Solution: Right-click on the project solution and choose Properties, and then where it says Interpreter: choose Python 3.6.
If you have Python 3.6 installed, the program will compile.