How to get python-dev for windows?

前端 未结 3 471
难免孤独
难免孤独 2020-12-03 17:39

We are trying to install PIL and getting the error

error: command \'gcc\' failed with exit status 1

Many similar questions, including this one (

相关标签:
3条回答
  • 2020-12-03 17:55

    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.

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

    • 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

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

    0 讨论(0)
  • The easiest way to get a complete working setup on Windows, including ming compiler, is to install a distribution such as pythonxy (my favorite) or EDP.

    0 讨论(0)
  • 2020-12-03 17:59

    When I used to develop on Windows, this website with pre-compiled binaries was extremely handy: http://www.lfd.uci.edu/~gohlke/pythonlibs/

    You'll find pre-compiled versions of PIL and ReportLab there. Hope that helps you out.

    0 讨论(0)
提交回复
热议问题