本文介绍了使用msys2时应该安装哪个Python(以及如何安装)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管当前的官方Python版本是3.6,msys2为python3提供了两个软件包:

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

  • msys/python3, currently using 3.4
  • mingw64/mingw-w64-x86_64-python3, currently using 3.5

那么我应该何时以及如何使用哪个版本?我不能只使用Windows 3.6并以某种方式告诉pacman使用它吗?还是可以在msys/mingw版本中运行3.6并在Windows中使用该版本,所以我不需要两个/三个安装?

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?

推荐答案

这是我在msys2上用于安装python3的内容:

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

$ pacman -Syuu

关闭并重新启动msys2.

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

要处理此错误没有intltool或版本

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

$ pacman -S intltool

将其添加到测试中

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

执行以下命令以验证python3是否已正确安装:

Execute this command to verify python3 is properly installed:

$ python3 --version
Python 3.6.4

有关详细信息,请参见 https://www.gramps-project .org/wiki/index.php?title = Gramps_for_Windows_with_MSYS2

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

这篇关于使用msys2时应该安装哪个Python(以及如何安装)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 14:26