This question already has an answer here:
Python 2.7 : LookupError: unknown encoding: cp65001
but my case is slightly different. I\'m using msys (mingw64) term