【发布时间】:2018-11-19 21:58:00
【问题描述】:
我需要在 MSYS2 上安装 Python 开发工具。
我的 Python 安装工作正常(通过调用 python3.6 或 python3:
$ python3.6
Python 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.
>>>
安装工具已安装:
$ pip3 install setuptools
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (36.4.0)
我已尝试按照How to install python developer package? 中的建议进行安装。 MSYS2没有yum所以我用pacman:
$ pacman -S python-devel
error: 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 开发工具?
【问题讨论】:
标签: python python-3.x installation msys msys2