如何获取python-dev的Windows? [英] How to get python-dev for windows?
问题描述
我们正在尝试安装PIL并获取错误
We are trying to install PIL and getting the error
error:command'gcc'failed with exit status 1
许多类似的问题,包括这一个(安装Reportlab(错误:命令'gcc'失败,退出状态1)),建议安装 python-dev
package。
Many similar questions, including this one (installing Reportlab (error: command 'gcc' failed with exit status 1 )), suggest installing the python-dev
package.
哪里可以为Windows 7提供。 pip install python-dev
没有工作。
Where can this be sourced for Windows 7. pip install python-dev
didn't work.
推荐答案
似乎没有针对Windows的 python-dev
包。但是Windows的Python安装程序通常会在主Python目录中安装一个子目录 include
。
It seems there is no python-dev
package for Windows. But the Python installer for Windows will normally install a sub directory include
inside the main Python dir.
所以用Python在 C:\Python
你会得到:
So with Python in C:\Python
you would get:
- C:\Python C:\Python\DLLs
- C:\Python\Doc
- strong> C:\Python\include
- C:\Python\Lib
- C:\Python \\ libs
- C:\Python\Scripts
- C:\Python\tcl
- C:\Python\Tools
- C:\Python
- C:\Python\DLLs
- C:\Python\Doc
- C:\Python\include
- C:\Python\Lib
- C:\Python\libs
- C:\Python\Scripts
- C:\Python\tcl
- C:\Python\Tools
在这个中包含
目录将找到 Python.h
,可以包含或引用。
Inside this include
directory you will find Python.h
, which can be included or referenced.
这篇关于如何获取python-dev的Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!