如何在MSYS2上安装Python开发工具
我需要在MSYS2上安装Python开发工具。
我的Python安装有效(通过调用python3.6
或python3
:
$ python3.6Python 3.6.5 (default, Apr 16 2018, 10:17:38) [GCC 7.3.0 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Setuptools已安装:
$ pip3 install setuptoolsRequirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (36.4.0)
我已尝试按照安装python" title="如何安装python">如何安装python开发人员包中的建议进行安装。。 MSYS2
没有,yum
所以我用了pacman
:
$ pacman -S python-develerror: target not found: python-devel
$ pacman -S python3-devel
error: target not found: python3-devel
$ pacman -S python3.6-devel
error: target not found: python3.6-devel
$ pacman -S python-dev
error: target not found: python-dev
$ pacman -S python3-dev
error: target not found: python3-dev
$ pacman -S python3.6-dev
error: target not found: python3.6-dev
到目前为止,这一切都失败了。如何获得Python开发工具?
回答:
根据要使用的MSYS2环境和所需的Python版本,可以安装不同的Python软件包:
$ pacman -Qs pythonlocal/mingw-w64-i686-python2 2.7.14-5
A high-level scripting language (mingw-w64)
local/mingw-w64-i686-python3 3.6.4-2
A high-level scripting language (mingw-w64)
local/mingw-w64-x86_64-python2 2.7.14-5
A high-level scripting language (mingw-w64)
local/mingw-w64-x86_64-python3 3.6.4-2
A high-level scripting language (mingw-w64)
local/python2 2.7.13-1
A high-level scripting language
以上是 如何在MSYS2上安装Python开发工具 的全部内容, 来源链接: utcz.com/qa/409484.html