我们正在尝试安装PIL并收到错误
error: command 'gcc' failed with exit status 1
许多类似的问题,包括这个问题(安装Reportlab(错误:命令'gcc'失败,退出状态为1)),建议安装 python-dev
包。
哪里可以为Windows 7采购。 pip install python-dev
没用。
我们正在尝试安装PIL并收到错误
error: command 'gcc' failed with exit status 1
许多类似的问题,包括这个问题(安装Reportlab(错误:命令'gcc'失败,退出状态为1)),建议安装 python-dev
包。
哪里可以为Windows 7采购。 pip install python-dev
没用。
似乎没有 python-dev
适用于Windows的包。但是Windows的Python安装程序通常会安装一个子目录 include
在主Python目录内。
所以使用Python C:\Python
你会得到:
在这里面 include
你会发现的目录 Python.h
,可以包含或引用。
当我以前在Windows上开发时,这个带有预编译二进制文件的网站非常方便: http://www.lfd.uci.edu/~gohlke/pythonlibs/
你会在那里找到PIL和ReportLab的预编译版本。希望能帮到你。