我们正在尝试安装 PIL 并收到错误
错误:命令“gcc”失败,退出状态为 1
许多类似的问题,包括这个 ( installing Reportlab (error: command 'gcc' failed with exit status 1 ) ),建议安装 python-dev
包。
Windows 7 的来源在哪里。pip install python-dev
不起作用。
最佳答案
Windows 似乎没有python-dev
包。但是 Windows 的 Python 安装程序通常会在主 Python 目录中安装一个子目录 include
。
所以在 C:\Python
中使用 Python 你会得到:
- C:\Python
- C:\Python\DLLs
- C:\Python\文档
- C:\Python\include
- C:\Python\Lib
- C:\Python\libs
- C:\Python\Scripts
- C:\Python\tcl
- C:\Python\工具
在此include
目录中,您将找到Python.h
,可以将其包含或引用。
关于python - 如何获得适用于 Windows 的 python-dev?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16448710/