‘pip3’ is not recognized as an internal or external command, operable program or batch file

On Windows, it’s a good idea to stick to launching pip via the py.exe common launcher, so you can provide flags to specify which version of Python to use without needing to deal with a complicated PATH. To use it for Python 3, just replace: with: It’s a little bit longer to type, but it avoids a lot of hassles with PATH management, … Read more

error: expected unqualified-id before ‘if’

You can’t have free-standing code like that. All code needs to go into functions. Wrap all that in a main function and you should be ok once you’ve fixed your use of QTextStream (it has no eof method, and it doesn’t have a readline method either – please look at the API docs that come with usage examples).