[New-bugs-announce] [issue35157] Missing pyconfig.h when building from source

Jorge Ramos report at bugs.python.org
Sat Nov 3 19:52:48 EDT 2018

New submission from Jorge Ramos <neyuru at gmail.com>:

When testing the builds when PGO is enabled, or by simply running rt.bat, the following error is (always) issued:

cpython\include\Python.h(8): fatal error C1083: Cannot include: 'pyconfig.h': No such file or directory

One example of steps taken is:

git clone git at github.com:python/cpython.git
cd cpython
git checkout 3.6
PCBuild\build.bat -p x64

I have to manually copy a pyconfig.h file from a working Python's include directory to the repositorie's include directory to fix this error. By the way, I had PYTHONHOME environment variable pointing to 

...\Python36\DLLs; ...\Python36\Lib; ...\Python36\Lib\site-packages; ...\Python36\include

with no success.

components: Build
messages: 329212
nosy: neyuru
priority: normal
severity: normal
status: open
title: Missing pyconfig.h when building from source
type: compile error
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list