I'm also having this problem on Mac, since the problem isn't specific to windows, perhaps there's a solution that isn't dependent on sys.platform == 'win32' or 'cygwin'
I'm also having this problem on Mac, since the problem isn't specific to windows, perhaps there's a solution that isn't dependent on sys.platform == 'win32' or 'cygwin'