I have started to learn Python and so far my setup has been following - Python 3.5 installation on Win10 64bit local machine with PyCharm as a great IDE. Everything works, matpl
Mac user should install XQuartz instead of Xming.
XQuartz
Xming
And another important thing: if you install xquartz via homebrew, you should relogin your macos or reboot.
xquartz
homebrew
As the rackpas's answer saying.