Which Python should I install (and how) when using msys2?

Tobias Kienzler picture Tobias Kienzler · Jan 30, 2017 · Viewed 19.5k times · Source

While the current official Python version is 3.6, msys2 provides two packages for python3:

So which version should I use when and how? Can't I just use the Windows 3.6 and somehow tell pacman to use that? Or can I get 3.6 running in a msys/mingw'd version and also use that in Windows so I don't need two/three installations?

Answer

user8128167 picture user8128167 · Apr 26, 2018

This is what I'm using on msys2 to install python3:

$ pacman -Syuu

Close and restart msys2.

$ pacman -S mingw-w64-x86_64-python3-bsddb3 mingw-w64-x86_64-gexiv2 mingw-w64-x86_64-ghostscript mingw-w64-x86_64-python3-cairo mingw-w64-x86_64-python3-gobject mingw-w64-x86_64-python3-icu mingw-w64-x86_64-iso-codes mingw-w64-x86_64-hunspell mingw-w64-x86_64-hunspell-en mingw-w64-x86_64-enchant

To deal with this error "No intltool or version < 0.25.0, build_intl is aborting" perform the following:

$ pacman -S intltool

Add these to test:

$ pacman -S mingw-w64-x86_64-python3-lxml
$ pacman -S mingw-w64-x86_64-python3-jsonschema

Execute this command to verify python3 is properly installed:

$ python3 --version
Python 3.6.4

For details please see https://www.gramps-project.org/wiki/index.php?title=Gramps_for_Windows_with_MSYS2