How to get python-dev for windows?

We are trying to install PIL and get an error

error: command 'gcc' failed with exit status 1

Many similar questions, including this one ( installing Reportlab (error: gcc command completed with exit status 1) ), suggest installing the python-dev package.

Where can I find it for Windows 7. pip install python-dev does not work.

+10
python django
May 08 '13 at 19:29
source share
3 answers

There seems to be no python-dev package for Windows. But the Python installer for Windows usually sets up the include subdirectory inside the main Python directory.

So, with Python in C:\Python you get:

  • C: \ Python
  • C: \ Python \ DLL,
  • C: \ Python \ Doc
  • C: \ Python \ enable
  • C: \ Python \ Lib
  • C: \ Python \ LIBS
  • C: \ Python \ Scripts
  • C: \ Python \ TCL
  • C: \ Python \ Tools

Inside this include directory, you will find Python.h , which can be included or specified.

+10
Jun 11 '14 at 12:40
source share

When I used to develop on Windows, this site with precompiled binaries was extremely convenient: http://www.lfd.uci.edu/~gohlke/pythonlibs/

You will find precompiled versions of PIL and ReportLab. Hope this helps you.

+2
May 08 '13 at 19:32
source share

The easiest way to get a full working setup on Windows, including the ming compiler, is to install a distribution like pythonxy (my favorites) or EDP .

0
May 08 '13 at 19:36
source share



All Articles